From c897f8296bbc15ecdda6f6befe40f2b1b36b1192 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 21 Apr 2008 13:44:09 +0000 Subject: [PATCH] =?utf8?q?Fixed=20group=20application-group=C3=BC=20detect?= =?utf8?q?ion?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10591 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../plugins/admin/groups/class_divListGroup.inc | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/gosa-core/plugins/admin/groups/class_divListGroup.inc b/gosa-core/plugins/admin/groups/class_divListGroup.inc index 4c4fa2c90..119d6be69 100644 --- a/gosa-core/plugins/admin/groups/class_divListGroup.inc +++ b/gosa-core/plugins/admin/groups/class_divListGroup.inc @@ -278,6 +278,16 @@ class divListGroup extends MultiSelectWindow $ui = get_userinfo(); + /* Fetch all application menu entries + */ + $base = get_groups_ou().$this->selectedBase; + $res = get_list("(objectClass=gotoMenuEntry)","application",$base,array("dn")); + $configured_apps = array(); + foreach($res as $entry){ + $dn = preg_replace("/^.*(cn=[^,]+,".normalizePreg(get_groups_ou()).")/","\\1",$entry['dn']); + $configured_apps[$dn] = $dn; + } + // Test Every Entry and generate divlist Array foreach($groups as $key => $val){ @@ -314,11 +324,14 @@ class divListGroup extends MultiSelectWindow if(in_array("posixGroup", $val['objectClass'])) $posix = $posiximg; if(in_array("gosaMailAccount", $val['objectClass'])) $mail = $mailimg; if(in_array("sambaGroupMapping", $val['objectClass'])) $samba = $sambaimg; - if(in_array("gosaApplicationGroup", $val['objectClass'])) $appl = $applimg; if(in_array("goFonPickupGroup", $val['objectClass'])) $phone = $phoneimg; if(in_array("gotoEnvironment", $val['objectClass'])) $enviro= $envimg; } + if(isset($configured_apps[$val['dn']])){ + $appl = $applimg; + } + $title = "title='".preg_replace('/ /', ' ', @LDAP::fix($val['dn']))."'"; if(!isset($val['description'][0])){ -- 2.30.2