From 8a525d475a98a76be1dcace24961504dc7952f71 Mon Sep 17 00:00:00 2001 From: cajus Date: Wed, 26 Apr 2006 12:43:58 +0000 Subject: [PATCH] Fixed property display git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3122 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../admin/groups/class_groupManagement.inc | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/plugins/admin/groups/class_groupManagement.inc b/plugins/admin/groups/class_groupManagement.inc index 38690d1d2..5ca9aeae4 100644 --- a/plugins/admin/groups/class_groupManagement.inc +++ b/plugins/admin/groups/class_groupManagement.inc @@ -445,16 +445,7 @@ class groupManagement extends plugin $editlink = "%s"; $userimg = "User"; - - /* Extension images - group - environment - appgroup - mailgroup - acl - reference - - */ + /* Assign extension images */ $posiximg = ""; @@ -514,6 +505,8 @@ class groupManagement extends plugin foreach($this->grouplist as $key => $val){ + $posix=$mail=$samba=$appl=$phone=$enviro=$empty; + if(isset($val['objectClass'])){ if(in_array("posixGroup", $val['objectClass'])) $posix = $posiximg; else $posix = $empty; if(in_array("gosaMailAccount", $val['objectClass'])) $mail = $mailimg; else $mail = $empty; @@ -521,8 +514,6 @@ class groupManagement extends plugin if(in_array("gosaApplicationGroup", $val['objectClass'])) $appl = $applimg; else $appl = $empty; if(in_array("goFonPickupGroup", $val['objectClass'])) $phone = $phoneimg; else $phone = $empty; if(in_array("gotoEnvironment", $val['objectClass'])) $enviro= $envimg; else $enviro = $empty; - }else{ - $posix=$mail=$samba=$appl=$phone=$empty; } $title = "title='dn: ".@LDAP::fix($val['dn'])."'"; @@ -658,11 +649,11 @@ class groupManagement extends plugin /* Depending on $CreatePosixsList we have to create different lists */ if ($groupfilter['subsearch'] == "checked"){ - $res= get_list($filter, $this->ui->subtreeACL, $base, array("cn", "description", "gidNumber"), + $res= get_list($filter, $this->ui->subtreeACL, $base, array("cn", "description", "gidNumber", "objectClass"), GL_SIZELIMIT); } else { $base= get_groups_ou().$base; - $res= get_list($filter, $this->ui->subtreeACL, $base, array("cn", "description", "gidNumber"), + $res= get_list($filter, $this->ui->subtreeACL, $base, array("cn", "description", "gidNumber", "objectClass"), GL_SIZELIMIT); } if (preg_match("/size limit/i", $error) || preg_match("/size limit/i", $error2)){ -- 2.30.2