forked from extern/egroupware
fix <taglist multiple="false" returns array(<id>)
more complete fix for server-side handling of boolean attributes commited to master
This commit is contained in:
parent
2b5b9470c7
commit
cf1471f7aa
@ -151,7 +151,7 @@ class Taglist extends Etemplate\Widget
|
||||
{
|
||||
self::set_validation_error($form_name,lang('Field must not be empty !!!',$value),'');
|
||||
}
|
||||
if(array_key_exists('multiple', $this->attrs) && $this->attrs['multiple'] == false)
|
||||
if(array_key_exists('multiple', $this->attrs) && (!$this->attrs['multiple'] || $this->attrs['multiple'] === 'false'))
|
||||
{
|
||||
$value = array_shift($value);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user