]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add the admin group to the group list data.
authorringmaster <epithet@gmail.com>
Tue, 6 May 2014 13:01:37 +0000 (09:01 -0400)
committerArthur Schiwon <blizzz@owncloud.com>
Mon, 2 Jun 2014 10:53:58 +0000 (12:53 +0200)
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.

settings/templates/users/main.php

index 1c35690d2ac4cca4bf58bc7c846325e47366be8f..c5805d53476cb0171503737cd814c10873c95d96 100644 (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']);