From 097887a659d582b5f481aee205ee9adeac551d0a Mon Sep 17 00:00:00 2001
From: ringmaster <epithet@gmail.com>
Date: Tue, 6 May 2014 09:01:37 -0400
Subject: [PATCH] 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.
---
 settings/templates/users/main.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/settings/templates/users/main.php b/settings/templates/users/main.php
index 1c35690d2a..c5805d5347 100644
--- a/settings/templates/users/main.php
+++ b/settings/templates/users/main.php
@@ -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']);
-- 
GitLab