From: hickert Date: Wed, 5 Nov 2008 07:18:19 +0000 (+0000) Subject: Updated tab::save for departments. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0dac59e1cdc2546a3ba6bfb492c047f855fe649e;p=gosa.git Updated tab::save for departments. -Reload config department cache if necessary git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12910 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/admin/departments/tabs_department.inc b/gosa-core/plugins/admin/departments/tabs_department.inc index 86f0acd65..208fb40a0 100644 --- a/gosa-core/plugins/admin/departments/tabs_department.inc +++ b/gosa-core/plugins/admin/departments/tabs_department.inc @@ -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){