summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2fdd591)
raw | patch | inline | side by side (parent: 2fdd591)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 5 Nov 2008 07:18:19 +0000 (07:18 +0000) | ||
committer | hickert <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
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12910 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/plugins/admin/departments/tabs_department.inc | patch | blob | history |
diff --git a/gosa-core/plugins/admin/departments/tabs_department.inc b/gosa-core/plugins/admin/departments/tabs_department.inc
index 86f0acd65053e2613b59e6bfb7b7b2541b94a665..208fb40a0a57174c6a6b86cd645d600b6b73e780 100644 (file)
/* 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){