mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 09:23:28 +01:00
fix required validation for <et2-select multiple and it's custom-field equivalent
This commit is contained in:
parent
7c027ad41f
commit
dbf77cb004
@ -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),'');
|
self::set_validation_error($form_name,lang('Field must not be empty !!!',$value),'');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user