From f308011f595d6e9385b8a91fa4ae561989959d8e Mon Sep 17 00:00:00 2001 From: steinm Date: Thu, 24 Jan 2013 09:23:29 +0000 Subject: [PATCH] put icon on delete button check for selected group --- views/bootstrap/class.GroupMgr.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/views/bootstrap/class.GroupMgr.php b/views/bootstrap/class.GroupMgr.php index 63e134dfb..8276ccd2d 100644 --- a/views/bootstrap/class.GroupMgr.php +++ b/views/bootstrap/class.GroupMgr.php @@ -34,6 +34,7 @@ class LetoDMS_View_GroupMgr extends LetoDMS_Bootstrap_Style { function show() { /* {{{ */ $dms = $this->params['dms']; $user = $this->params['user']; + $selgroup = $this->params['selgroup']; $allUsers = $this->params['allusers']; $allGroups = $this->params['allgroups']; $strictformcheck = $this->params['strictformcheck']; @@ -110,7 +111,7 @@ function showUser(selectObj) { $selected=0; $count=2; foreach ($allGroups as $group) { - if (isset($_GET["groupid"]) && $group->getID()==$_GET["groupid"]) $selected=$count; + if ($selgroup && $group->getID()==$selgroup->getID()) $selected=$count; print "