Code

Update current saving
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 29 Jan 2010 18:05:07 +0000 (18:05 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 29 Jan 2010 18:05:07 +0000 (18:05 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15481 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_listing.inc

index d3587e4dc5ace0657af22eb1fa1492bacc25c944..8e5f104c90a413fc618ff76046d457532f28d739 100644 (file)
@@ -562,6 +562,7 @@ class listing {
         $deps= $ui->get_module_departments($this->categories);
         $this->base= $deps[0];
         $this->baseSelector->setBase($this->base);
+        session::global_set("CurrentMainBase", $this->base);
       }
       if ($action == 'BACK') {
         $deps= $ui->get_module_departments($this->categories);
@@ -569,12 +570,14 @@ class listing {
         if(in_array_ics($base, $deps)){
           $this->base= $base;
           $this->baseSelector->setBase($this->base);
+          session::global_set("CurrentMainBase", $this->base);
         }
       }
       if ($action == 'HOME') {
         $ui= get_userinfo();
         $this->base= get_base_from_people($ui->dn);
         $this->baseSelector->setBase($this->base);
+        session::global_set("CurrentMainBase", $this->base);
       }
     }
 
@@ -585,7 +588,6 @@ class listing {
 
     // Update filter and refresh entries
     $this->filter->setBase($this->base);
-    session::global_set("CurrentMainBase", $this->base);
     $this->entries= $this->filter->query();
 
     // Fix filter if querie returns NULL