From ab2391c806f2ad3813d3966b689520ff98fa321c Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 22 Jul 2010 13:39:05 +0000 Subject: [PATCH] Updated class plugin -Updated post handling -Added location to script execution vars git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19049 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_plugin.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gosa-core/include/class_plugin.inc b/gosa-core/include/class_plugin.inc index 62526a2c3..bb5d80135 100644 --- a/gosa-core/include/class_plugin.inc +++ b/gosa-core/include/class_plugin.inc @@ -336,10 +336,11 @@ class plugin if (isset ($_POST["$val"]) && $this->acl_is_writeable($val)){ /* Check for modifications */ - $data= $this->$val = get_post($val); + $data= get_post($val); if ($this->$val != $data){ $this->is_modified= TRUE; } + $this->$val = $data; /* Okay, how can I explain this fix ... * In firefox, disabled option fields aren't selectable ... but in IE you can select these fileds. @@ -1526,7 +1527,7 @@ class plugin { global $config; $command = $config->configRegistry->getPropertyValue(get_class($plugin),$cmd); - + if ($command != ""){ // Walk trough attributes list and add the plugins attributes. @@ -1538,6 +1539,7 @@ class plugin $ui = get_userinfo(); $addAttrs['callerDN']=$ui->dn; $addAttrs['dn']=$plugin->dn; + $addAttrs['location']=$config->current['NAME']; // Sort attributes by length, ensures correct replacement $tmp = array(); -- 2.30.2