mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-24 06:14:20 +01:00
fix required validation for <et2-select multiple and it's custom-field equivalent
This commit is contained in:
parent
74678556d1
commit
589515ec34
@ -269,7 +269,7 @@ class Select extends Etemplate\Widget
|
||||
}
|
||||
}
|
||||
}
|
||||
if ($ok && $value === '' && $this->required)
|
||||
if ($ok && $this->required && ((string)$value === '' || is_array($value) && !$value))
|
||||
{
|
||||
self::set_validation_error($form_name,lang('Field must not be empty !!!',$value),'');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user