From 90aa487990809244c4b598ec8f6832f53eb02148 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 17 Aug 2005 10:33:07 +0000 Subject: [PATCH] Grouplisting changed git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1173 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/groups/class_groupManagement.inc | 12 +++++++----- plugins/admin/systems/class_systemManagement.inc | 3 +-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/plugins/admin/groups/class_groupManagement.inc b/plugins/admin/groups/class_groupManagement.inc index 20d925f03..fe9c5119c 100644 --- a/plugins/admin/groups/class_groupManagement.inc +++ b/plugins/admin/groups/class_groupManagement.inc @@ -547,10 +547,11 @@ class groupManagement extends plugin $filter= "(&(|(memberUID=" . $groupfilter['guser'] . ")(cn=" . $groupfilter['guser'] . "))$filter)"; } } - if ($groupfilter['subsearch'] == "checked"){ - $res= get_list($this->ui->subtreeACL, "$filter", TRUE, $base, array("cn", "description", "gidNumber"), TRUE); + if ($groupfilter['subsearch'] != "checked"){ + $res= get_list($this->ui->subtreeACL, "$filter", FALSE, $base, array("cn", "description", "gidNumber"), TRUE); } else { $base= get_groups_ou().$base; + $res= get_list($this->ui->subtreeACL, "$filter", FALSE, $base, array("cn", "description", "gidNumber"), TRUE); } if (preg_match("/size limit/i", $error) || preg_match("/size limit/i", $error2)){ @@ -662,7 +663,7 @@ class groupManagement extends plugin $base2 = preg_replace("/ou=people,/i","",$base); $res3 = get_list2($this->ui->subtreeACL, "(&(|(ou=$regex)(description=$regex))(objectClass=gosaDepartment))", - TRUE, $base2, array("ou", "description"), TRUE); + FALSE, $base2, array("ou", "description"), TRUE); $this->departments= array(); $tmp = array(); @@ -686,15 +687,16 @@ class groupManagement extends plugin } } if ($groupfilter['subsearch'] == "checked"){ - $res= get_list($this->ui->subtreeACL, "$filter", TRUE, $base, array("cn", "description", "gidNumber"), TRUE); + $res= get_list($this->ui->subtreeACL, "$filter", FALSE, $base, array("cn", "description", "gidNumber"), TRUE); } else { - $base= get_groups_ou().$base; + $base= get_groups_ou().$base; $res= get_list($this->ui->subtreeACL, "$filter", FALSE, $base, array("cn", "description", "gidNumber"), TRUE); } if (preg_match("/size limit/i", $error) || preg_match("/size limit/i", $error2)){ $_SESSION['limit_exceeded']= TRUE; } + $this->grouplist = array(); foreach ($res as $value){ $this->grouplist[$value['gidNumber'][0]]= $value; } diff --git a/plugins/admin/systems/class_systemManagement.inc b/plugins/admin/systems/class_systemManagement.inc index e79da9b1d..ecf653dd2 100644 --- a/plugins/admin/systems/class_systemManagement.inc +++ b/plugins/admin/systems/class_systemManagement.inc @@ -830,9 +830,8 @@ class systems extends plugin /* Get all gotoTerminal's */ $this->terminals= array(); - $res= get_list($this->ui->subtreeACL, "(|$termfilter$workfilter$winfilter$printfilter$phonefilter$serverfilter$netfilter)", TRUE, $base, array("cn", "description", "macAddress", "objectClass", "sambaDomainName"), TRUE); + $res= get_list($this->ui->subtreeACL, "(|$termfilter$workfilter$winfilter$printfilter$phonefilter$serverfilter$netfilter)", false, $base, array("cn", "description", "macAddress", "objectClass", "sambaDomainName"), FALSE); - /* NEW LIST MANAGMENT * We also need to search for the departments * So we are able to navigate like in konquerer -- 2.30.2