Code

Fixed order of returned bases from get_allowed_bases
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 6 Dec 2006 11:06:08 +0000 (11:06 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 6 Dec 2006 11:06:08 +0000 (11:06 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5322 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_plugin.inc

index c32eca5f0c17daddceda8a87c5c0b04ff6cf9899..574ff73450a84f3db7f7e8f677635bbcab1262cb 100644 (file)
@@ -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."<br> ";
-    }
-
     $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."<br> ";
+    }
+
     return($deps);
   }