From eb108c617bbd28f6819efd1b3931991cff737e0e Mon Sep 17 00:00:00 2001 From: Lukasz Pawlik Date: Mon, 28 Feb 2011 16:19:43 +0100 Subject: [PATCH] obexd: Fix pulling phonebook entries without last name This patch fix problem with pulling phonebook entries using PBAP without last name filled. Previously last name was used to sort phonebook data now only tracker id is used. --- obexd/plugins/phonebook-tracker.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/obexd/plugins/phonebook-tracker.c b/obexd/plugins/phonebook-tracker.c index b204493bb..2cd10de87 100644 --- a/obexd/plugins/phonebook-tracker.c +++ b/obexd/plugins/phonebook-tracker.c @@ -135,11 +135,10 @@ "\"NOTACALL\" \"false\" \"false\" " \ "?_contact " \ "WHERE {" \ -" ?_contact a nco:PersonContact ;" \ -" nco:nameFamily ?_key ." \ +" ?_contact a nco:PersonContact ." \ " OPTIONAL {?_contact nco:hasAffiliation ?_role .}" \ "}" \ -"ORDER BY ?_key tracker:id(?_contact)" +"ORDER BY tracker:id(?_contact)" #define CONTACTS_QUERY_ALL_LIST \ "SELECT ?c nco:nameFamily(?c) " \ -- 2.47.3