From bc3166052765d2a1031dda827ef6e903666e41b5 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 26 Jun 2008 11:44:15 +0000 Subject: [PATCH] Fixed one department level up <- action in management lists. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11456 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_MultiSelectWindow.inc | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/gosa-core/include/class_MultiSelectWindow.inc b/gosa-core/include/class_MultiSelectWindow.inc index b4a43dea7..fa59990e0 100644 --- a/gosa-core/include/class_MultiSelectWindow.inc +++ b/gosa-core/include/class_MultiSelectWindow.inc @@ -555,16 +555,8 @@ class MultiSelectWindow{ $base_back= preg_replace("/^[^,]+,/", "", session::get('CurrentMainBase')); $dep_id = $this->ui->get_module_departments($this->module); if(in_array_ics($base_back,$dep_id)){ - - /* The department array keeps non DN entries as index. We need to convert - it before checking the existance. */ - $base_back= trim(convert_department_dn($base_back)); - - /* Check if the department exists, otherwise revert to the configure base DN */ - if(isset($this->config->departments[$base_back])){ - $this->selectedBase= $this->config->departments[$base_back]; - }else{ - $this->selectedBase= $this->config->departments['/']; + if(in_array($base_back,$this->config->departments)){ + $this->selectedBase = $base_back; } } } -- 2.30.2