From 4945da580b5f755c2ea295447b850224213e92d6 Mon Sep 17 00:00:00 2001 From: Ilkka Aulomaa Date: Tue, 23 Apr 2013 16:58:37 +0300 Subject: Fix for TDIS-5481. This fixes bug that grouped log items are attempted to be deleted two times, which causes failure of the delete procedure. --- lib/log/ph-log-check-view.c | 3 ++- packaging/phone.changes | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 packaging/phone.changes diff --git a/lib/log/ph-log-check-view.c b/lib/log/ph-log-check-view.c index bc151bd..3360b09 100755 --- a/lib/log/ph-log-check-view.c +++ b/lib/log/ph-log-check-view.c @@ -202,7 +202,8 @@ static PTHREAD_FN log_check_del(void *data) if (!l_info) continue; if (TRUE == l_info->checked) { - if (CONTACTS_ERROR_NONE != ph_log_util_del_log_by_id(log_d->log_list, l_info)) { + if (CONTACTS_ERROR_NONE != contacts_db_delete_record( _contacts_phone_log._uri, l_info->id)) { + ERR("contacts_db_delete_record() failed (id=%d)" ,l_info->id); p_info->completed = true; break; } diff --git a/packaging/phone.changes b/packaging/phone.changes new file mode 100644 index 0000000..1021fa3 --- /dev/null +++ b/packaging/phone.changes @@ -0,0 +1,3 @@ +* Tue Apr 23 2013 Ilkka Aulomaa submit/tizen_2.1/20130423.053952@ccb290b +- Fix for TDIS-5481. This fixes bug that grouped log items are attempted to be deleted two times, which causes failure of the delete procedure. + -- cgit v1.2.3