Code

Re-applied r3288
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 11 May 2006 10:51:59 +0000 (10:51 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 11 May 2006 10:51:59 +0000 (10:51 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3291 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/departments/class_departmentManagement.inc

index b2feb33eafe0015affeeff1c72e6855f5650fff9..f9bd648b851b3ecd3e232340ecac775f47a5b921 100644 (file)
@@ -66,14 +66,15 @@ class departmentManagement extends plugin
 
                /* Reload departments */
                $this->config->get_departments();
+               $this->config->make_idepartments();
+               $_SESSION['config']= $this->config;
+               
                $smarty                                         = get_smarty();
                $display                                        = "";
                $depfilter                                      = get_global("depfilter");
                $s_action                                       = "";  // Will contain an action, like del or edit
                $s_entry                                        = "";  // The entry name for edit delete -...
 
-               $this->config->make_idepartments();
-
                if (isset($_POST['regex'])){
                        $depfilter['regex']= $_POST['regex'];
                }
@@ -229,8 +230,7 @@ class departmentManagement extends plugin
                        $this->deptabs->save(true);
                        $this->deptabs->by_object['department']->recursive_move("","",true);
                        $this->reload ();
-                       /* Group has been saved successfully, remove lock from
-                          LDAP. */
+                       /* Group has been saved successfully, remove lock from LDAP. */
                        if ($this->dn != "new"){
                                del_lock ($this->dn);
                        }
@@ -445,9 +445,6 @@ class departmentManagement extends plugin
                }
                natcasesort ($this->departments);
                reset ($this->departments);
-
-               /* Unset global department list */
-               unset($_SESSION['cached_departments']);
        }
 
        function remove_from_parent()