From: hickert Date: Fri, 20 Jun 2008 07:34:43 +0000 (+0000) Subject: Fixed sorting of departments in management dialogs X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=14a131ba20ad9bd6e260565af743f80d0afb31b6;p=gosa.git Fixed sorting of departments in management dialogs git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11385 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_MultiSelectWindow.inc b/gosa-core/include/class_MultiSelectWindow.inc index 2787a8087..c82429d19 100644 --- a/gosa-core/include/class_MultiSelectWindow.inc +++ b/gosa-core/include/class_MultiSelectWindow.inc @@ -745,8 +745,11 @@ class MultiSelectWindow{ $ids = $this->config->idepartments; foreach($modules as $module){ $d = $ui->get_module_departments($module); - foreach($d as $department){ - $departments[$department] = $department; + + foreach($ids as $department => $desc){ + if(in_array($department,$d)){ + $departments[$department] = $department; + } } }