From 9afb974d4460b92a10ff303308f8556d0909c289 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 2 Jul 2013 18:26:53 +0000 Subject: [PATCH] loading actual groups now via callback --- admin/inc/class.admin_ui.inc.php | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/admin/inc/class.admin_ui.inc.php b/admin/inc/class.admin_ui.inc.php index 6325dcee11..00b2a0c95b 100644 --- a/admin/inc/class.admin_ui.inc.php +++ b/admin/inc/class.admin_ui.inc.php @@ -142,14 +142,19 @@ class admin_ui } elseif ($root == '/groups') { - $tree['item'][] = array( - 'text' => 'Admins', - 'id' => '/groups/Admins', - ); - $tree['item'][] = array( - 'text' => 'Default', - 'id' => '/groups/Default', - ); + foreach($GLOBALS['egw']->accounts->search(array( + 'type' => 'groups', + )) as $group) + { + $tree['item'][] = self::fix_userdata(array( + 'text' => $group['account_lid'], + 'id' => $root.'/'.$group['account_id'], + 'link' => egw::link('/index.php', array( + 'menuaction' => 'admin.uiaccounts.edit_group', + 'account_id' => $group['account_id'], + )), + )); + } } self::strip_item_keys($tree['item']); //_debug_array($tree); exit;