summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0a38d0e)
raw | patch | inline | side by side (parent: 0a38d0e)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 23 Feb 2010 14:42:37 +0000 (14:42 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 23 Feb 2010 14:42:37 +0000 (14:42 +0000) |
-Updated dep list on remove too.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15678 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15678 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/plugins/admin/departments/class_departmentManagement.inc | patch | blob | history |
diff --git a/gosa-core/plugins/admin/departments/class_departmentManagement.inc b/gosa-core/plugins/admin/departments/class_departmentManagement.inc
index de84cf952a69427b16557338b8058bd491d002e4..adf3ee14d37c42c1e5eeb5da3eada458bcf4026b 100644 (file)
$str = management::saveChanges();
if(!empty($str)) return($str);
-
- global $config;
- $config->get_departments();
- $config->make_idepartments();
- $this->config = $config;
- $headpage = $this->getHeadpage();
- $headpage->refreshBasesList();
-
+ $this->refreshDeps();
$plugname = $this->last_tabObject->base_name;
if($this->last_tabObject->by_object[$plugname]->must_be_tagged()){
$smarty = get_smarty();
return($smarty->fetch(get_template_path("dep_iframe.tpl",TRUE)));
}
}
+
+
+ function refreshDeps()
+ {
+ global $config;
+ $config->get_departments();
+ $config->make_idepartments();
+ $this->config = $config;
+ $headpage = $this->getHeadpage();
+ $headpage->refreshBasesList();
+ }
// An action handler which enables to switch into deparmtment by clicking the names.
return("<a href='?plug=".$_GET['plug']."&PID=$pid&act=listing_open_$row' title='$dn'>$ou</a>");
}
+
+ // Finally remove departments and update departmnet browsers
+ function removeEntryConfirmed($action="",$target=array(),$all=array(),$altTabClass="",$altTabType="",$altAclCategory="")
+ {
+ management::removeEntryConfirmed($action,$target,$all, $altTabClass,$altTabType,$altAclCategory);
+ $this->refreshDeps();
+ }
/*! \brief Returns information about all container types that GOsa con handle.
@return Array Informations about departments supported by GOsa.