From dfc0c0708d4a241671e260382a46b9a3a3e8c0e7 Mon Sep 17 00:00:00 2001 From: wolfgang Date: Fri, 27 Jul 2007 17:47:14 +0000 Subject: [PATCH] git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1126 d1b88da0-ebda-0310-925b-ed51d893ca5b --- ChangeLog | 7 +++++++ SoObjects/Contacts/SOGoContactGCSFolder.m | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2cfff954..9f2d6069 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 23444abd..7228ac62 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 -- 2.39.5