Code

Fixed department reload
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 17 May 2006 06:37:25 +0000 (06:37 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 17 May 2006 06:37:25 +0000 (06:37 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3377 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/departments/class_departmentManagement.inc

index cdfea0c4728de77c62b377fee1eaf2fcbd8f83bf..947b541af6e40ce03c6911e6b14f4baf36072d67 100644 (file)
@@ -67,10 +67,6 @@ class departmentManagement extends plugin
     $_SESSION['LOCK_VARS_TO_USE'] = array("/^act$/","/^id$/","/^dep_edit_.*/","/^dep_del_.*/");
 
     /* Reload departments */
-    $this->config->get_departments();
-    $this->config->make_idepartments();
-    $config= $this->config;
-
     $smarty                                            = get_smarty();
     $display                                   = "";
     $s_action                                  = "";  // Will contain an action, like del or edit
@@ -396,6 +392,11 @@ class departmentManagement extends plugin
 
   function save_object()
   {
+    /* reload department */
+    $this->config->get_departments();
+    $config = $this->config;
+
+    $this->config->make_idepartments();
     $this->DivListDepartment->save_object();
   }