allow default label, even if switched to multiple, as it might stay if switch happens on clientside

This commit is contained in:
Ralf Becker 2013-11-17 10:26:36 +00:00
parent 65b3cee7ab
commit 823e2b62c0

View File

@ -84,7 +84,7 @@ class etemplate_widget_menupopup extends etemplate_widget
$value = $value_in = self::get_array($content, $form_name);
$allowed = self::selOptions($form_name, true); // true = return array of option-values
if (!$this->attrs['multiple']) $allowed[] = '';
if (!$this->attrs['multiple'] || !($this->attrs['options'] > 1)) $allowed[] = '';
foreach((array) $value as $val)
{