From: hickert Date: Thu, 12 Jan 2006 08:01:38 +0000 (+0000) Subject: Updated something X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=78b00a9c7831a239e29a78e7ffe1350c92c221dd;p=gosa.git Updated something git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2453 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/fai/class_faiManagement.inc b/plugins/admin/fai/class_faiManagement.inc index 6a516158f..16bc0e516 100644 --- a/plugins/admin/fai/class_faiManagement.inc +++ b/plugins/admin/fai/class_faiManagement.inc @@ -260,7 +260,6 @@ class faiManagement extends plugin $this->dialog= NULL; /* Terminal list has changed, reload it. */ - $this->reload (); } else { /* Normally this shouldn't be reached, send some extra @@ -329,6 +328,8 @@ class faiManagement extends plugin $baseToUse = $_SESSION['faifilter']['branch']; } + $ldap->cd($this->config->current['BASE']); + $ldap->create_missing_trees($baseToUse); $ldap->cd ("ou=".$name.",".$baseToUse); $ldap->recursive_remove(); @@ -502,9 +503,10 @@ class faiManagement extends plugin if((isset($_POST['base']))&&($s_action=="")){ $faifilter['base']=$_POST['base']; } - - $br = $this->getBranches(); + $base= "ou=fai,ou=configs,ou=systems,".$faifilter['base']; + + $br = $this->getBranches($base); if(!isset($br[$faifilter['branch']])){ $faifilter['branch'] = "main"; }