From: hickert Date: Mon, 25 Feb 2008 09:42:24 +0000 (+0000) Subject: Updated department listing. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=refs%2Fheads%2F2.5-lhm;p=gosa.git Updated department listing. -Reload list of available departmenst, if we have to display a currently unknown department. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5-lhm@9099 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/departments/class_divListDepartment.inc b/plugins/admin/departments/class_divListDepartment.inc index e1f6cb612..ee9c775bc 100644 --- a/plugins/admin/departments/class_divListDepartment.inc +++ b/plugins/admin/departments/class_divListDepartment.inc @@ -91,6 +91,12 @@ class divListDepartment extends MultiSelectWindow $ui = get_userinfo(); foreach($list as $key => $val) { + /* Reload list of available departments, if there is unknown department listed + */ + if(!isset($this->config->departments[trim($key)])){ + $this->config->get_departments(); + } + $acl= get_permissions ($this->config->departments[$key], $ui->subtreeACL); $acl= get_module_permission($acl, "department", $this->config->departments[$key]); @@ -102,10 +108,6 @@ class divListDepartment extends MultiSelectWindow alt='"._("delete")."' name='dep_del_%KEY%' title='"._("Delete this entry")."'>"; } - if(!isset($this->config->departments[trim($key)])){ - $this->config->departments[trim($key)]=""; - } - $non_empty=""; $keys= str_replace("/","\/",$key); foreach($this->config->departments as $keyd=>$vald ){