Code

Fixed double department reload
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 8 Sep 2006 10:51:13 +0000 (10:51 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 8 Sep 2006 10:51:13 +0000 (10:51 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4632 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/departments/class_departmentManagement.inc

index 608d6298a914195ecd914a79bfe11a829059f3ca..8ba8550ea3147e7e7ec1b1a930c69c738f7d969e 100644 (file)
@@ -202,11 +202,6 @@ class departmentManagement extends plugin
           $this->RecursiveRemoveRequested = true;
         }              
       
-        $this->config->get_departments($this->dn);
-        $this->config->make_idepartments();
-        $this->DivListDepartment->config=$this->config;
-
         /* This var indicated that there is an object which isn't saved right now. */
         $this->ObjectInSaveMode = true;
 
@@ -402,9 +397,9 @@ class departmentManagement extends plugin
   {
     /* reload department */
     $this->config->get_departments();
-    $config = $this->config;
 
     $this->config->make_idepartments();
+    $this->DivListDepartment->config= $this->config;
     $this->DivListDepartment->save_object();
   }