From d57b8fa99ddb090fb5cc07f85ff3b4a906eb6d28 Mon Sep 17 00:00:00 2001 From: Rafal Michalski Date: Mon, 29 Nov 2010 14:51:56 +0100 Subject: [PATCH] obexd: Fix problem with fetching 0.vcf vCard entry Previously after attempting to get single 0.vcf vCard entry from phonebook ("telecom/pb/0.vcf") "Not Found" status was received and this entry wasn't downloaded. Now "OK" status is received and valid 0.vcf vCard entry is downloaded. --- obexd/plugins/phonebook-tracker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obexd/plugins/phonebook-tracker.c b/obexd/plugins/phonebook-tracker.c index 20053f653..a6b9e72bb 100644 --- a/obexd/plugins/phonebook-tracker.c +++ b/obexd/plugins/phonebook-tracker.c @@ -943,7 +943,7 @@ "nco:phoneNumber(?t) \"NOTACALL\" \"false\" \"false\" <%s> " \ "WHERE { " \ "<%s> a nco:Contact . " \ - "<%s> nco:hasPhoneNumber ?t . " \ + "OPTIONAL { <%s> nco:hasPhoneNumber ?t . } " \ "} " #define CONTACTS_COUNT_QUERY \ -- 2.47.3