diff --git a/plugins/admin/departments/class_departmentManagement.inc b/plugins/admin/departments/class_departmentManagement.inc
index d77066f6915f63686f99efb24f6e85e7fdc91b19..9bb51d3755ed233395f9e600d411000697e92cd9 100644 (file)
function execute()
{
+ global $config;
+
/* Call parent execute */
plugin::execute();
-
/***************
Var init
***************/
$_SESSION['LOCK_VARS_TO_USE'] = array("/^act$/","/^id$/","/^dep_edit_.*/","/^dep_del_.*/");
/* Reload departments */
- $this->config->get_departments();
- $this->config->make_idepartments();
- $_SESSION['config']= $this->config;
-
$smarty = get_smarty();
$display = "";
$s_action = ""; // Will contain an action, like del or edit
return(gen_locked_message($user, $this->dn));
} else {
add_lock ($this->dn, $this->ui->dn);
- $smarty->assign("info", sprintf(_("You're about to delete the whole LDAP subtree placed under '%s'."), LDAP::fix($this->dn)));
+ $smarty->assign("info", sprintf(_("You're about to delete the whole LDAP subtree placed under '%s'."), @LDAP::fix($this->dn)));
$display.= $smarty->fetch (get_template_path('remove.tpl', TRUE));
return ($display);
}
return ($display);
}else{
/* Display dialog with group list */
+ $this->DivListDepartment->parent = $this;
$this->DivListDepartment->execute();
$this->reload();
$this->DivListDepartment->DepartmentsAdded = true;
function save_object()
{
+ /* reload department */
+ $this->config->get_departments();
+ $config = $this->config;
+
+ $this->config->make_idepartments();
$this->DivListDepartment->save_object();
}