From: hickert Date: Mon, 21 Apr 2008 13:44:09 +0000 (+0000) Subject: Fixed group application-groupĆ¼ detection X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c897f8296bbc15ecdda6f6befe40f2b1b36b1192;p=gosa.git Fixed group application-groupĆ¼ detection git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10591 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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])){