From befd747b41c4b905707fa2bd8663eea5d399021c Mon Sep 17 00:00:00 2001 From: psc Date: Thu, 26 Feb 2009 15:52:49 +0000 Subject: [PATCH] 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/branches/2.6-lhm@13473 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../applications/class_applicationParameters.inc | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/trunk/gosa-plugins/goto/admin/applications/class_applicationParameters.inc b/trunk/gosa-plugins/goto/admin/applications/class_applicationParameters.inc index fecd5927e..bfc6a8555 100644 --- a/trunk/gosa-plugins/goto/admin/applications/class_applicationParameters.inc +++ b/trunk/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,18 @@ 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() -- 2.30.2