From: hickert Date: Mon, 9 Mar 2009 14:55:52 +0000 (+0000) Subject: Author: psc X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2ce11b2232f508e4532888c8929ef15797e1fd06;p=gosa.git Author: psc Date: 2009-02-26 16:52:49 +0100 (Thu, 26 Feb 2009) New Revision: 13473 Modified: branches/2.6-lhm/trunk/gosa-plugins/goto/admin/applications/class_applicationParameters.inc Log: Add a PrepareForCopyPaste function to make copying of applications also copy applicationParameters (Fix for LHM #1269) git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13521 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/admin/applications/class_applicationParameters.inc b/gosa-plugins/goto/admin/applications/class_applicationParameters.inc index fecd5927e..ced6b2b15 100644 --- a/gosa-plugins/goto/admin/applications/class_applicationParameters.inc +++ b/gosa-plugins/goto/admin/applications/class_applicationParameters.inc @@ -7,9 +7,6 @@ class applicationParameters extends plugin /* attribute list for save action */ var $attributes= array("gosaApplicationParameter"); - var $objectclasses= array(); - - var $CopyPasteVars = array("option_name","option_value"); function applicationParameters (&$config, $dn= NULL, $parent= NULL) { @@ -228,6 +225,20 @@ class applicationParameters extends plugin $this->handle_post_events('modify'); } + + function PrepareForCopyPaste($source) + { + plugin::PrepareForCopyPaste($source); + + $source_o = new applicationParameters($this->config,$source['dn']); + $this->option_name = $source_o->option_name; + $this->option_value = $source_o->option_value; + + /* Set is_account state so that the save function is called properly */ + $this->is_account = TRUE; + } + + /* Return plugin informations for acl handling #FIXME FAIscript seams to ununsed within this class... */ static function plInfo()