From 427f7f4b4f8fa3b9228c1541677528aa77264f7b Mon Sep 17 00:00:00 2001 From: Hivert Quentin Date: Wed, 20 Dec 2023 15:36:37 +0100 Subject: [PATCH] feature(contact): Show 100 first results for global address book. Fix commit #17eca6f --- SoObjects/SOGo/LDAPSource.m | 2 +- SoObjects/SOGo/SQLSource.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SoObjects/SOGo/LDAPSource.m b/SoObjects/SOGo/LDAPSource.m index 87c1bc95d..3eb820943 100644 --- a/SoObjects/SOGo/LDAPSource.m +++ b/SoObjects/SOGo/LDAPSource.m @@ -1412,7 +1412,7 @@ groupObjectClasses: (NSArray *) newGroupObjectClasses contacts = [NSMutableArray array]; - if (!_listRequiresDot) + if ([match length] > 0 || !_listRequiresDot) { ldapConnection = [self _ldapConnection]; qualifier = [self _qualifierForFilter: match onCriteria: criteria]; diff --git a/SoObjects/SOGo/SQLSource.m b/SoObjects/SOGo/SQLSource.m index 5927b0c66..a03c6bc01 100644 --- a/SoObjects/SOGo/SQLSource.m +++ b/SoObjects/SOGo/SQLSource.m @@ -951,7 +951,7 @@ results = [NSMutableArray array]; - if (!_listRequiresDot) + if ([filter length] > 0 || !_listRequiresDot) { cm = [GCSChannelManager defaultChannelManager]; channel = [cm acquireOpenChannelForURL: _viewURL];