Code

Updated tab::save for departments.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 5 Nov 2008 07:18:19 +0000 (07:18 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 5 Nov 2008 07:18:19 +0000 (07:18 +0000)
-Reload config department cache if necessary

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12910 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/admin/departments/tabs_department.inc

index 86f0acd65053e2613b59e6bfb7b7b2541b94a665..208fb40a0a57174c6a6b86cd645d600b6b73e780 100644 (file)
@@ -115,9 +115,17 @@ class deptabs extends tabs
 
     /* Move group? */
     if ($this->dn != $new_dn && $this->dn != "new"){
-        $baseobject->move($this->dn,$new_dn);
+      $baseobject->move($this->dn,$new_dn);
     } 
 
+    /* Update department cache. 
+     */
+    if($this->dn != $new_dn){
+      global $config;
+      $config->get_departments();
+    }
+
+
     $this->dn= $new_dn;
     $baseobject->dn= $this->dn;
     if (!$ignore_account){