From: Pawel Andruszkiewicz
Date: Mon, 8 Jun 2015 13:23:32 +0000 (+0200)
Subject: [Contact] Fixed check for CONTACTS_EMAIL_TYPE_OTHER.
X-Git-Tag: submit/tizen_mobile/20150612.133019^2~2^2~30^2
X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1075b247959bc33b513847a7ceb210c36d348f89;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git
[Contact] Fixed check for CONTACTS_EMAIL_TYPE_OTHER.
Prevent CID: 392499
[Verification] TCT pass rate: 441/441.
Change-Id: I33041ca3c0891e90d55e8a5e4313a0a1092ad9e1
Signed-off-by: Pawel Andruszkiewicz
---
diff --git a/src/contact/contact_util.cc b/src/contact/contact_util.cc
index 2c094589..8d32193f 100755
--- a/src/contact/contact_util.cc
+++ b/src/contact/contact_util.cc
@@ -699,7 +699,7 @@ PlatformResult ImportContactEmailAddressFromContactsRecord(
if (type & CONTACTS_EMAIL_TYPE_WORK) {
types.push_back(JsonValue{kContactEmailAddressTypeWork});
}
- if (type & CONTACTS_EMAIL_TYPE_OTHER) {
+ if (CONTACTS_EMAIL_TYPE_OTHER == type) {
types.push_back(JsonValue{kContactEmailAddressTypeOther});
}
if (type & CONTACTS_EMAIL_TYPE_CUSTOM) {