From 823e2b62c0f462d6b0a3b44be0478e9e970a06fa Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 17 Nov 2013 10:26:36 +0000 Subject: [PATCH] allow default label, even if switched to multiple, as it might stay if switch happens on clientside --- etemplate/inc/class.etemplate_widget_menupopup.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/inc/class.etemplate_widget_menupopup.inc.php b/etemplate/inc/class.etemplate_widget_menupopup.inc.php index d59dc1ecd3..7874c4a82c 100644 --- a/etemplate/inc/class.etemplate_widget_menupopup.inc.php +++ b/etemplate/inc/class.etemplate_widget_menupopup.inc.php @@ -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) {