Code

Fixed printer removal
[gosa.git] / plugins / admin / systems / tabs_workstation.inc
index 13df2dc0f3867b9ec2a00bcc0bc9f58c28c8760b..bb5b892a8bb03beccefc975df930e8e561b15b7c 100644 (file)
@@ -10,11 +10,8 @@ class worktabs extends tabs
 
   function save_object($save_current= FALSE)
   {
+echo "Take care of the l attribute. It needs to be synced in case of workstations.";
     tabs::save_object($save_current);
-
-    /* Update reference, transfer variables */
-    $this->by_object['termstartup']->gotoTerminalPath=
-      $this->by_object['workgeneric']->gotoTerminalPath;
   }
 
 
@@ -31,6 +28,10 @@ class worktabs extends tabs
     }
 
     tabs::save(TRUE);
+    if(($this->by_object['printgeneric']->is_account==false)&&($this->by_object['printgeneric']->initially_was_account==true)){
+      $this->by_object['printgeneric']->remove_from_parent();
+    }
+
   }
 
 }