From: psc Date: Tue, 21 Jul 2009 10:07:13 +0000 (+0000) Subject: * Make CopyPasteVars complete X-Git-Url: https://git.tokkee.org/?p=gosa.git;a=commitdiff_plain;h=5d2c73bf5dfdf4eecaf3011c7ca3919e0733cd16 * Make CopyPasteVars complete * 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 --- diff --git a/trunk/gosa-plugins/goto/personal/environment/class_environment.inc b/trunk/gosa-plugins/goto/personal/environment/class_environment.inc index c7befa3ce..9db2031f7 100644 --- a/trunk/gosa-plugins/goto/personal/environment/class_environment.inc +++ b/trunk/gosa-plugins/goto/personal/environment/class_environment.inc @@ -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; + }