Add the admin group to the group list data.

Fixes the admin group disappearing from the list when updating the display as the result of a search.

This group data should probably be managed on the page entirely by the javascript GroupList object, but this seems like the interim method.
This commit is contained in:
ringmaster 2014-05-06 09:01:37 -04:00 committed by Arthur Schiwon
parent 747c011615
commit 097887a659
1 changed files with 3 additions and 0 deletions

View File

@ -9,6 +9,9 @@ $allGroups=array();
foreach($_["groups"] as $group) {
$allGroups[] = $group['name'];
}
foreach($_["adminGroup"] as $group) {
$allGroups[] = $group['name'];
}
$userlistParams['subadmingroups'] = $allGroups;
$userlistParams['allGroups'] = json_encode($allGroups);
$items = array_flip($userlistParams['subadmingroups']);