mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 17:04:14 +01:00
fixed not working checkboxes after r31472
This commit is contained in:
parent
bad2477f30
commit
a8826ad635
@ -2207,12 +2207,12 @@ class etemplate extends boetemplate
|
||||
self::set_array($content,$form_name,$value);
|
||||
break;
|
||||
case 'checkbox':
|
||||
if (!$value)
|
||||
if (!$value && $attr['needed'])
|
||||
{
|
||||
self::set_validation_error($form_name,lang('Field must not be empty !!!',$value),'');
|
||||
}
|
||||
if ($value === false)
|
||||
{
|
||||
if ($attr['needed'])
|
||||
{
|
||||
self::set_validation_error($form_name,lang('Field must not be empty !!!',$value),'');
|
||||
}
|
||||
self::set_array($content,$form_name,$attr['multiple'] ? array() : $attr['unset_value']); // need to be reported too
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user