Skip to contentSkip to conversation

Fix problem with fetching 0.vcf vCard entry

PATCH In review Rafal Michalski 2 participants 2 messages Nov 29, 2010 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 plugins/phonebook-tracker.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
plugins/phonebook-tracker.c +1 -1
index 20053f6..a6b9e72 100644
@@ -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						\
Signature · 1 line
1.6.3.3
#1 lore raw

Hi Rafal,

Quoted 7 lines · Rafal Michalski

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.

---
 plugins/phonebook-tracker.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Pushed upstream. Thanks.

Johan