From b9b279304f96d6ec6cb1191bd8668126f716d051 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 2 Sep 2014 12:23:02 +0000 Subject: [PATCH] * Tracker/eTemplate: user could not empty CC field (taglist-email) --- etemplate/inc/class.etemplate_widget_taglist.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/etemplate/inc/class.etemplate_widget_taglist.inc.php b/etemplate/inc/class.etemplate_widget_taglist.inc.php index 17a8e1ec54..b55ef2a6a6 100644 --- a/etemplate/inc/class.etemplate_widget_taglist.inc.php +++ b/etemplate/inc/class.etemplate_widget_taglist.inc.php @@ -130,7 +130,9 @@ class etemplate_widget_taglist extends etemplate_widget self::set_validation_error($form_name,lang('Field must not be empty !!!',$value),''); } $valid =& self::get_array($validated, $form_name, true); - if (true) $valid = $value; + // returning null instead of array(), as array() will be overwritten by etemplate_new::complete_array_merge() + // with preserved old content and therefore user can not empty a taglist + if (true) $valid = $value ? $value : null; //error_log(__METHOD__."() $form_name: ".array2string($value_in).' --> '.array2string($value).', allowed='.array2string($allowed)); } }