From 9c3dda9c8dd80f3a0a341f5a367d3989e840d294 Mon Sep 17 00:00:00 2001 From: Radoslaw Jablonski Date: Thu, 22 Jul 2010 15:06:11 +0300 Subject: [PATCH] obexd: Fix query for VCARD listing (work phone issue) Fixed tracker query for VCARD listing - previously contacts with only work phone filled were missing in query result (and in vcard listing). Now if mobile/home phone number is not available, then trying to get work phone number. --- obexd/plugins/phonebook-tracker.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/obexd/plugins/phonebook-tracker.c b/obexd/plugins/phonebook-tracker.c index ee072d31c..41d7fde90 100644 --- a/obexd/plugins/phonebook-tracker.c +++ b/obexd/plugins/phonebook-tracker.c @@ -72,6 +72,10 @@ "WHERE { " \ "?c a nco:PersonContact . " \ "OPTIONAL { ?c nco:hasPhoneNumber ?h . } " \ + "OPTIONAL { " \ + "?c nco:hasAffiliation ?a . " \ + "?a nco:hasPhoneNumber ?h . " \ + "} " \ "}" #define MISSED_CALLS_QUERY \ -- 2.47.3