From 8f458663064802aafec4e2f53aa178e7cc434137 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 6 Dec 2006 11:06:08 +0000 Subject: [PATCH] Fixed order of returned bases from get_allowed_bases git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5322 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_plugin.inc | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/include/class_plugin.inc b/include/class_plugin.inc index c32eca5f0..574ff7345 100644 --- a/include/class_plugin.inc +++ b/include/class_plugin.inc @@ -1484,13 +1484,6 @@ class plugin $new = false; } - /* Add current base */ - if(isset($this->base) && isset($this->config->idepartments[$this->base])){ - $deps[$this->base] = $this->config->idepartments[$this->base]; - }else{ - echo "No default base found. ".$this->base."
"; - } - $cat_bases = $ui->get_module_departments(preg_replace("/\/.*$/","",$category)); foreach($this->config->idepartments as $dn => $name){ @@ -1505,6 +1498,14 @@ class plugin $deps[$dn] = $name; } } + + /* Add current base */ + if(isset($this->base) && isset($this->config->idepartments[$this->base])){ + $deps[$this->base] = $this->config->idepartments[$this->base]; + }else{ + echo "No default base found. ".$this->base."
"; + } + return($deps); } -- 2.30.2