From 14a131ba20ad9bd6e260565af743f80d0afb31b6 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 20 Jun 2008 07:34:43 +0000 Subject: [PATCH] Fixed sorting of departments in management dialogs git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11385 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_MultiSelectWindow.inc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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; + } } } -- 2.30.2