From 78b00a9c7831a239e29a78e7ffe1350c92c221dd Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 12 Jan 2006 08:01:38 +0000 Subject: [PATCH] Updated something git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2453 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/fai/class_faiManagement.inc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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"; } -- 2.30.2