mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 17:38:19 +01:00
allow default label, even if switched to multiple, as it might stay if switch happens on clientside
This commit is contained in:
parent
65b3cee7ab
commit
823e2b62c0
@ -84,7 +84,7 @@ class etemplate_widget_menupopup extends etemplate_widget
|
|||||||
$value = $value_in = self::get_array($content, $form_name);
|
$value = $value_in = self::get_array($content, $form_name);
|
||||||
|
|
||||||
$allowed = self::selOptions($form_name, true); // true = return array of option-values
|
$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)
|
foreach((array) $value as $val)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user