Code

More speed optimizations
[gosa.git] / plugins / admin / systems / class_systemManagement.inc
index 10df0550f8322a226860ed97a9891ca8f68d603b..911fbe0318fbc0d6d6df52fec068dbb53e9dea0a 100644 (file)
@@ -402,10 +402,10 @@ class systems extends plugin
         $found = false;
   
         /* Set gotoMode to active if we there was an ogroup selected . (save_object_directly) */
-        foreach(array("workgeneric","servgeneric") as $tab){
+        foreach(array("workgeneric"=>"active","servgeneric"=>"active","termgeneric"=>"graphic") as $tab => $value){
           if(isset($this->systab->by_object[$tab]->gotoMode)) {
             $found = true;
-            $this->systab->by_object[$tab]->gotoMode = "active";
+            $this->systab->by_object[$tab]->gotoMode = $value;
           }
         }   
         if(!$found){
@@ -593,7 +593,7 @@ class systems extends plugin
 
     /* This array represents the combination between checkboxes and search filters */
     $objs = array( "ShowServers"        => array("CLASS" => "goServer"        ,"TREE" => "ou=servers,ou=systems," ),
-        "ShowTerminals"      => array("CLASS" => "goHard"          ,"TREE" => "ou=terminals,ou=systems,"), 
+        "ShowTerminals"      => array("CLASS" => "gotoTerminal"    ,"TREE" => "ou=terminals,ou=systems,"), 
         "ShowPrinters"       => array("CLASS" => "gotoPrinter"     ,"TREE" => "ou=printers,ou=systems," ),
         "ShowDevices"        => array("CLASS" => "ieee802Device"   ,"TREE" => "ou=netdevices,ou=systems," ),
         "ShowPhones"         => array("CLASS" => "goFonHardware"   ,"TREE" => "ou=phones,ou=systems," ),