forked from extern/egroupware
fixed not working checkboxes after r31472
This commit is contained in:
parent
8ef7201027
commit
b9bfd285a5
@ -2248,12 +2248,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