Code

Updated listing
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 28 Jan 2010 14:00:34 +0000 (14:00 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 28 Jan 2010 14:00:34 +0000 (14:00 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15419 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_listing.inc

index b615cf826bb0f0c53901b771b0454baf050a0ee3..b91c063ee4d1ec22aa87760937008a6358458369 100644 (file)
@@ -504,7 +504,9 @@ class listing {
         if (preg_match('/^department_([0-9]+)$/', validate($_GET['act']), $match)){
           if (isset($this->departments[$match[1]])){
             $this->base= $this->departments[$match[1]]['dn'];
-            $this->baseSelector->setBase($this->base);
+            if ($this->baseMode) {
+              $this->baseSelector->setBase($this->base);
+            }
             session::global_set("CurrentMainBase", $this->base);
           }
         }
@@ -593,7 +595,9 @@ class listing {
   function setBase($base)
   {
     $this->base= $base;
-    $this->baseSelector->setBase($this->base);
+    if ($this->baseMode) {
+      $this->baseSelector->setBase($this->base);
+    }
   }
 
 
@@ -1289,7 +1293,7 @@ class listing {
     }
 
     // Populate base selector if already present
-    if ($this->baseSelector) {
+    if ($this->baseSelector && $this->baseMode) {
       $this->baseSelector->setBases($this->bases);
     }
   }