summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 49a8007)
raw | patch | inline | side by side (parent: 49a8007)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 9 Mar 2009 14:55:52 +0000 (14:55 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 9 Mar 2009 14:55:52 +0000 (14:55 +0000) |
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
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
gosa-plugins/goto/admin/applications/class_applicationParameters.inc | patch | blob | history |
diff --git a/gosa-plugins/goto/admin/applications/class_applicationParameters.inc b/gosa-plugins/goto/admin/applications/class_applicationParameters.inc
index fecd5927e27a0bf6b5fda5e086222958620f37cf..ced6b2b153df4c8779b37962f3e12a46820d509c 100644 (file)
/* 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)
{
$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()