linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH obexd 1/2] PBAP/Tracker: Fix wrong results field reference
@ 2012-02-03 11:03 Slawomir Bochenski
  2012-02-03 11:03 ` [PATCH obexd 2/2] PBAP/Tracker: Fix searching vCards by phone number Slawomir Bochenski
  0 siblings, 1 reply; 2+ messages in thread
From: Slawomir Bochenski @ 2012-02-03 11:03 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Slawomir Bochenski

The field passed for a phone number was actually a nickname field.
---
 plugins/phonebook-tracker.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/phonebook-tracker.c b/plugins/phonebook-tracker.c
index da82ff5..d358c9f 100644
--- a/plugins/phonebook-tracker.c
+++ b/plugins/phonebook-tracker.c
@@ -1409,10 +1409,10 @@ static int add_to_cache(const char **reply, int num_fields, void *user_data)
 	/* The owner vCard must have the 0 handle */
 	if (strcmp(reply[0], TRACKER_DEFAULT_CONTACT_ME) == 0)
 		data->entry_cb(reply[0], 0, formatted, "",
-						reply[6], data->user_data);
+						reply[7], data->user_data);
 	else
 		data->entry_cb(reply[0], PHONEBOOK_INVALID_HANDLE, formatted,
-					"", reply[6], data->user_data);
+					"", reply[7], data->user_data);
 
 	g_free(formatted);
 
-- 
1.7.4.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH obexd 2/2] PBAP/Tracker: Fix searching vCards by phone number
  2012-02-03 11:03 [PATCH obexd 1/2] PBAP/Tracker: Fix wrong results field reference Slawomir Bochenski
@ 2012-02-03 11:03 ` Slawomir Bochenski
  0 siblings, 0 replies; 2+ messages in thread
From: Slawomir Bochenski @ 2012-02-03 11:03 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Slawomir Bochenski

Originally only one of contact's phone numbers was stored in cache,
rendering searching by phone numbers not fully functional.
---
 plugins/phonebook-tracker.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/plugins/phonebook-tracker.c b/plugins/phonebook-tracker.c
index d358c9f..7ac02f6 100644
--- a/plugins/phonebook-tracker.c
+++ b/plugins/phonebook-tracker.c
@@ -167,7 +167,7 @@
 			"} "						\
 		"} "							\
 	") "								\
-	"nco:phoneNumber(?h) "						\
+	"GROUP_CONCAT(nco:phoneNumber(?h), \"" MAIN_DELIM "\") "	\
 	"WHERE { "							\
 		"?c a nco:PersonContact . "				\
 	"OPTIONAL { ?c nco:hasPhoneNumber ?h . } "			\
-- 
1.7.4.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-02-03 11:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-03 11:03 [PATCH obexd 1/2] PBAP/Tracker: Fix wrong results field reference Slawomir Bochenski
2012-02-03 11:03 ` [PATCH obexd 2/2] PBAP/Tracker: Fix searching vCards by phone number Slawomir Bochenski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).