From: hickert Date: Wed, 22 Mar 2006 05:47:01 +0000 (+0000) Subject: Some improvements X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=95fe1a84d4b720e7413233c72c8c7c8c5d80e651;p=gosa.git Some improvements git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2883 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/applications/class_applicationManagement.inc b/plugins/admin/applications/class_applicationManagement.inc index b02c25be4..b2981fa91 100644 --- a/plugins/admin/applications/class_applicationManagement.inc +++ b/plugins/admin/applications/class_applicationManagement.inc @@ -108,7 +108,7 @@ class applicationManagement extends plugin $s_action = ""; // Contains the action to proceed $s_entry = ""; // The value for s_action $base_back = ""; // The Link for Backbutton - + /* Start for New List Managment */ if(isset($_GET['act'])&&($_GET['act']=="dep_open")){ $s_action="open"; @@ -202,6 +202,14 @@ class applicationManagement extends plugin } $appfilter['regex']= $s; } + + $this->Releases = $this->getReleases($appfilter['depselect']); + if(!isset($this->Releases[$this->Release])){ + $this->Release = key($this->Releases); + $appfilter['release'] = $this->Release; + register_global("appfilter",$appfilter); + } + register_global("appfilter", $appfilter); /* Check sorting variable */ @@ -594,11 +602,7 @@ class applicationManagement extends plugin */ $peopleOU = get_people_ou(); - if(empty($peopleOU)){ - $base2 = $base; - }else{ - $base2 = preg_replace("/".$peopleOU."/i","",$base); - } + $base2 = $appfilter['depselect']; $res3 = get_list2($this->ui->subtreeACL, "(&(|(ou=$regex)(description=$regex))(objectClass=gosaDepartment))", TRUE, $base2, array("ou", "description"), TRUE);