From 282888715baab5b728a3e3a8a70f13d3a5428f85 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Fri, 23 Mar 2012 18:43:06 +0000 Subject: [PATCH] Custom field value is never an array, just a string --- etemplate/inc/class.etemplate_widget_customfields.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etemplate/inc/class.etemplate_widget_customfields.inc.php b/etemplate/inc/class.etemplate_widget_customfields.inc.php index b630c7b6c8..c4d613f95b 100644 --- a/etemplate/inc/class.etemplate_widget_customfields.inc.php +++ b/etemplate/inc/class.etemplate_widget_customfields.inc.php @@ -234,7 +234,8 @@ class etemplate_widget_customfields extends etemplate_widget_transformer self::set_validation_error($form_name,lang('Field must not be empty !!!'),''); } $valid =& self::get_array($validated, $this->id ? $form_name : $field, true); - $valid = $value; + + $valid = implode(',',$value); error_log(__METHOD__."() $form_name $field: ".array2string($value).' --> '.array2string($value)); } }