From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 22 Jul 2010 15:14:42 +0300 From: Johan Hedberg To: Radoslaw Jablonski Cc: linux-bluetooth@vger.kernel.org Subject: Re: [PATCH] Fix query for VCARD listing (work phone issue) Message-ID: <20100722121442.GA20763@jh-x301> References: <1279800371-24342-1-git-send-email-ext-jablonski.radoslaw@nokia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <1279800371-24342-1-git-send-email-ext-jablonski.radoslaw@nokia.com> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Radek, On Thu, Jul 22, 2010, Radoslaw Jablonski wrote: > Fixed tracker query for VCARD listing - previously contacts with only > work phone filled were missing in query result (and in vcard listing). > Now if mobile/home phone number is not available, then trying to get > work phone number. > --- > plugins/phonebook-tracker.c | 4 ++++ > 1 files changed, 4 insertions(+), 0 deletions(-) > > diff --git a/plugins/phonebook-tracker.c b/plugins/phonebook-tracker.c > index ee072d3..41d7fde 100644 > --- a/plugins/phonebook-tracker.c > +++ b/plugins/phonebook-tracker.c > @@ -72,6 +72,10 @@ > "WHERE { " \ > "?c a nco:PersonContact . " \ > "OPTIONAL { ?c nco:hasPhoneNumber ?h . } " \ > + "OPTIONAL { " \ > + "?c nco:hasAffiliation ?a . " \ > + "?a nco:hasPhoneNumber ?h . " \ > + "} " \ > "}" > > #define MISSED_CALLS_QUERY \ Thanks for the patch. It's now upstream. Johan