aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/widgets.php14
1 files changed, 10 insertions, 4 deletions
diff --git a/engine/lib/widgets.php b/engine/lib/widgets.php
index 2269d76d0..85348a4f8 100644
--- a/engine/lib/widgets.php
+++ b/engine/lib/widgets.php
@@ -296,15 +296,21 @@
$handler = $widget->handler;
if (empty($handler) || !widget_type_exists($handler)) return false;
- if (!$widget->canEdit()) return false;
+ if (!$widget->canEdit()) return false;
// Save the params to the widget
if (is_array($params) && sizeof($params) > 0) {
- foreach($params as $name => $value) {
+ foreach($params as $name => $value) {
+ error_log("ERP: $name". print_r($value, true));
if (!empty($name) && !in_array($name,array(
'guid','owner_guid','site_guid'
- ))) {
- $widget->$name = $value;
+ ))) {
+ if (is_array($value))
+ {
+ error_log("ERP: Here");
+ $widget->setMetaData($name, $value, "", true);
+ }else
+ $widget->$name = $value;
}
}
$widget->save();