From 0dac59e1cdc2546a3ba6bfb492c047f855fe649e Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 5 Nov 2008 07:18:19 +0000 Subject: [PATCH] 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 --- .../plugins/admin/departments/tabs_department.inc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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){ -- 2.30.2