From ba2d98e27930291b79415ff51d3f4c907dd5ffe7 Mon Sep 17 00:00:00 2001 From: Denis Dolzhenko Date: Wed, 13 Sep 2017 17:48:03 +0300 Subject: [PATCH] Fix ContactManager TizenRefApp-9282, TizenRefApp-9314 Change-Id: I3363a01d56db40952629f2ad42bb022bdd2616cd Signed-off-by: Denis Dolzhenko --- src/Common/ContactManager/src/ContactManager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Common/ContactManager/src/ContactManager.cpp b/src/Common/ContactManager/src/ContactManager.cpp index 7ae6347c..05f3c30e 100644 --- a/src/Common/ContactManager/src/ContactManager.cpp +++ b/src/Common/ContactManager/src/ContactManager.cpp @@ -160,7 +160,7 @@ ContactPersonNumberRef ContactManager::getContactPersonNumber(int phoneNumId) { contacts_filter_h filter = nullptr; - contacts_filter_create(_contacts_contact_number._uri, &filter); + contacts_filter_create(_contacts_person_number._uri, &filter); contacts_filter_add_int(filter, _contacts_person_number.number_id, CONTACTS_MATCH_EQUAL, phoneNumId); return filter ? getContactPersonNumber(filter) : nullptr; } @@ -168,7 +168,7 @@ ContactPersonEmailRef ContactManager::getContactPersonEmail(int emailId) { contacts_filter_h filter = nullptr; - contacts_filter_create(_contacts_contact_email._uri, &filter); + contacts_filter_create(_contacts_person_email._uri, &filter); contacts_filter_add_int(filter, _contacts_person_email.email_id, CONTACTS_MATCH_EQUAL, emailId); return filter ? getContactPersonEmail(filter) : nullptr; } @@ -176,7 +176,7 @@ ContactPersonNumberRef ContactManager::getContactPersonNumber(const std::string &number) { contacts_filter_h filter = nullptr; - contacts_filter_create(_contacts_contact_number._uri, &filter); + contacts_filter_create(_contacts_person_number._uri, &filter); contacts_filter_add_str(filter, _contacts_person_number.number_filter, CONTACTS_MATCH_EXACTLY, number.c_str()); return filter ? getContactPersonNumber(filter) : nullptr; } -- 2.34.1