Code

Fixed typo
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 23 Nov 2006 06:41:39 +0000 (06:41 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 23 Nov 2006 06:41:39 +0000 (06:41 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5204 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_terminalGeneric.inc
plugins/admin/systems/tabs_terminal.inc

index ba256af50ece884b3a9d8b79452f48286895549b..ca29ec1e23dedc0213ab45507bc169b314e96e53 100644 (file)
@@ -380,7 +380,7 @@ class termgeneric extends plugin
     }
 
     /* Permissions for that base? */
-    $this->dn= "cn=".$this->cn."ou=terminals,ou=systems,".$this->base;
+    $this->dn= "cn=".$this->cn.",ou=terminals,ou=systems,".$this->base;
 
     /* Set new acl base */
     if($this->dn == "new") {
index 78bf16d45ab793cf7259b9f5d0c3c32e0042b397..69540dda128ca4ab2cc88dc6d5a97c847c9c87f4 100644 (file)
@@ -39,8 +39,14 @@ class termtabs extends tabs
     tabs::save_object($save_current);
 
     /* Update reference, transfer variables */
-    $this->by_object['termstartup']->gotoTerminalPath=
-      $this->by_object['termgeneric']->gotoTerminalPath;
+    if(isset($this->by_object['termstartup'])){
+      $this->by_object['termstartup']->gotoTerminalPath= $this->by_object['termgeneric']->gotoTerminalPath;
+    }
+    
+    $base_obj = $this->by_object['termgeneric'];
+    foreach($this->by_object as $name => $plug){
+      $this->by_object[$name]->cn = $base_obj->cn;
+    }
   }