mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-28 10:53:39 +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);
|
self::set_array($content,$form_name,$value);
|
||||||
break;
|
break;
|
||||||
case 'checkbox':
|
case 'checkbox':
|
||||||
if (!$value)
|
if (!$value && $attr['needed'])
|
||||||
{
|
|
||||||
if ($attr['needed'])
|
|
||||||
{
|
{
|
||||||
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),'');
|
||||||
}
|
}
|
||||||
|
if ($value === false)
|
||||||
|
{
|
||||||
self::set_array($content,$form_name,$attr['multiple'] ? array() : $attr['unset_value']); // need to be reported too
|
self::set_array($content,$form_name,$attr['multiple'] ? array() : $attr['unset_value']); // need to be reported too
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user