Convert the group limit to match the same behaviour as the user search

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
Juan Pablo Villafáñez 2016-07-12 09:04:48 +02:00 committed by Arthur Schiwon
parent 626d03e3d4
commit 9e2e0c4c30
No known key found for this signature in database
GPG Key ID: 7424F1874854DF23
1 changed files with 5 additions and 0 deletions

View File

@ -114,6 +114,11 @@ class Search extends Command {
$proxy = new Group_Proxy($configPrefixes, $ldapWrapper);
$getMethod = 'getGroups';
$printID = false;
// convert the limit of groups to null. This will show all the groups available instead of
// nothing, and will match the same behaviour the search for users has.
if ($limit === 0) {
$limit = null;
}
} else {
$proxy = new User_Proxy($configPrefixes, $ldapWrapper, $this->ocConfig);
$getMethod = 'getDisplayNames';