diff options
author | Lukasz Pawlik <lucas.pawlik@gmail.com> | 2011-02-28 16:19:43 +0100 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2011-03-01 16:13:08 -0300 |
commit | b4099286ee0f323d3131379ea11cc993b92a411f (patch) | |
tree | fff46ca1c0ae10bb1e7e616ae6cb6f4562c8382c /plugins/phonebook-tracker.c | |
parent | 00bfdfd538b05fd50b6844560e6a0ab43ab3f413 (diff) | |
download | obexd-b4099286ee0f323d3131379ea11cc993b92a411f.tar.gz |
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.
Diffstat (limited to 'plugins/phonebook-tracker.c')
-rw-r--r-- | plugins/phonebook-tracker.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/phonebook-tracker.c b/plugins/phonebook-tracker.c index b204493..2cd10de 100644 --- a/plugins/phonebook-tracker.c +++ b/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) " \ |