From 42effa04b5a0852d16e7872890584081539a7ab7 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Fri, 27 Jul 2007 17:47:08 +0000 Subject: [PATCH] Monotone-Parent: f17c5b526c3d5e27597a7f1cf132a2b6c6312003 Monotone-Revision: d3cf63029d15740f82cdb77e0b3e2c4e08d6a7cc Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-07-27T17:47:08 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 7 +++++++ SoObjects/Contacts/SOGoContactGCSFolder.m | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2cfff9547..9f2d60694 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-07-27 Wolfgang Sourdeau + + * SoObjects/Contacts/SOGoContactGCSFolder.m () + ([SOGoContactGCSFolder + -lookupContactsWithFilter:filtersortBy:sortKeyordering:sortOrdering]): + return records if the db records are > 0 and not just > 1... + 2007-07-24 Wolfgang Sourdeau * UI/Contacts/UIxContactsListView.m ([-displayName]): removed diff --git a/SoObjects/Contacts/SOGoContactGCSFolder.m b/SoObjects/Contacts/SOGoContactGCSFolder.m index 23444abd7..7228ac628 100644 --- a/SoObjects/Contacts/SOGoContactGCSFolder.m +++ b/SoObjects/Contacts/SOGoContactGCSFolder.m @@ -224,7 +224,7 @@ qualifier = [self _qualifierForFilter: filter]; dbRecords = [[self ocsFolder] fetchFields: fields matchingQualifier: qualifier]; - if ([dbRecords count] > 1) + if ([dbRecords count] > 0) { records = [self _flattenedRecords: dbRecords]; ordering