Code

* Make CopyPasteVars complete
authorpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 21 Jul 2009 10:07:13 +0000 (10:07 +0000)
committerpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 21 Jul 2009 10:07:13 +0000 (10:07 +0000)
* Force adding the new object to eventually existing printer objects
  on Copy/Paste
(Trac: #3034)

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13941 594d385d-05f5-0310-b6e9-bd551577e9d8

trunk/gosa-plugins/goto/personal/environment/class_environment.inc

index c7befa3ce85d78d4f2bcf1bae7727005be865175..9db2031f739271aecabcddac05fc13a3a5384c8e 100644 (file)
@@ -64,7 +64,31 @@ class environment extends plugin
   /* general settings */
   // Sets the attributes which will kept on page reload, which will be saved, ...
 
-  var $CopyPasteVars      = array("gotoHotplugDevices","gotoAvailableShares","gotoShareSelections","gotoPrinterSel","gotoProfileFlagL","gotoXResolutions","gotoProfileFlagC","gotoProfileServers","useProfile","is_group","in_dialog","OrigCn","gotoKioskProfile_Server","gotoKioskProfile_Profile");
+  var $CopyPasteVars      = array(
+                            "gotoProfileServer",
+                            "gotoProfileFlags",
+                            "gotoProfileFlagC",
+                            "gotoProfileFlagL",
+                            "useProfile",
+                            "gotoHotplugDeviceDN",
+                            "gotoXResolution",
+                            "gotoProfileQuota",
+                            "gotoLogonScripts",
+                            "gotoLogonScript",
+                            "gotoPrinter",
+                            "gotoPrinterSel",
+                            "gosaDefaultPrinter",
+                            "gotoHotplugDevices",
+                            "gotoShares",
+                            "gotoShare",
+                            "gotoShareSelections",
+                            "gotoAvailableShares",
+                            "gotoKioskProfile",
+                            "gotoKioskProfile_Server",
+                            "gotoKioskProfile_Profile",
+                            "is_group",
+                            "in_dialog",
+                            );
 
   var $attributes         = array("uid","gotoProfileServer","gotoProfileFlags","gotoHotplugDeviceDN",
       "gotoXResolution","gotoProfileQuota",
@@ -1383,6 +1407,11 @@ class environment extends plugin
     foreach($this->CopyPasteVars as $attr){
       $this->$attr = $o_source->$attr;  
     }
+
+    /* Force adding the new object to eventually
+     * existing printer objects */
+    $this->add_del_printer_member_was_called = TRUE;
+
   }