Code

System objects will be created in the selected base now.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 21 Oct 2005 05:45:41 +0000 (05:45 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 21 Oct 2005 05:45:41 +0000 (05:45 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1644 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_systemManagement.inc

index e0480b3bb3535d6afacb41958fb8a25a805acb0a..2e19c9cdb3b4c026419c75666ead3562133e2b42 100644 (file)
@@ -199,6 +199,7 @@ class systems extends plugin
           $this->systab->set_acl ($this->acl);
           $this->systab->by_object['termgeneric']->cn= "default";
           $this->systab->by_object['termservice']->cn= "default";
+          $this->systab->by_object['termgeneric']->base = $_SESSION['terminalfilter']['depselect'];  
           break;
 
         case 'workstation':
@@ -207,34 +208,42 @@ class systems extends plugin
           $this->systab->set_acl ($this->acl);
           $this->systab->by_object['workgeneric']->cn= "wdefault";
           $this->systab->by_object['workservice']->cn= "default";
+          $this->systab->by_object['workgeneric']->base = $_SESSION['terminalfilter']['depselect'];  
           break;
 
         case 'server':
           $this->systab= new servtabs($this->config,
               $this->config->data['TABS']['SERVTABS'], $this->dn);
           $this->systab->set_acl ($this->acl);
+          $this->systab->by_object['servgeneric']->base = $_SESSION['terminalfilter']['depselect'];  
           break;
 
         case 'printer':
           $this->systab= new printtabs($this->config,
               $this->config->data['TABS']['PRINTTABS'], $this->dn);
           $this->systab->set_acl ($this->acl);
+          $this->systab->by_object['printgeneric']->base = $_SESSION['terminalfilter']['depselect'];  
           break;
 
         case 'phone':
           $this->systab= new phonetabs($this->config,
               $this->config->data['TABS']['PHONETABS'], $this->dn);
           $this->systab->set_acl ($this->acl);
+          $this->systab->by_object['phonegeneric']->base = $_SESSION['terminalfilter']['depselect'];  
           break;
 
         case 'component':
           $this->systab= new componenttabs($this->config,
               $this->config->data['TABS']['COMPONENTTABS'], $this->dn);
           $this->systab->set_acl ($this->acl);
+          $this->systab->by_object['componentgeneric']->base = $_SESSION['terminalfilter']['depselect'];  
           break;
       }
+       
+      $this->systab->base = $_SESSION['terminalfilter']['depselect'];  
     }
 
+
     /* User wants to edit data? */
     if ($s_action == "edit"){