Code

Updated something
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 12 Jan 2006 08:01:38 +0000 (08:01 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 12 Jan 2006 08:01:38 +0000 (08:01 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2453 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/fai/class_faiManagement.inc

index 6a516158f0216339484ed506a0ca8b9bdd89ef5f..16bc0e5169f4ad4eaf5199eb7b2d90a89856741c 100644 (file)
@@ -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";
     }