mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:04:53 +01:00
dont give a required error if there's a blur content
This commit is contained in:
parent
6c4cda6bfc
commit
84b36865e1
@ -1600,7 +1600,7 @@
|
|||||||
//echo "<p>setting content[$form_name]='$_cont' because is was unset !!!</p>\n";
|
//echo "<p>setting content[$form_name]='$_cont' because is was unset !!!</p>\n";
|
||||||
$this->set_array($content,$form_name,$_cont);
|
$this->set_array($content,$form_name,$_cont);
|
||||||
}
|
}
|
||||||
if ($_cont === '' && $attr['needed'])
|
if ($_cont === '' && $attr['needed'] && !$attr['blur'])
|
||||||
{
|
{
|
||||||
$GLOBALS['egw_info']['etemplate']['validation_errors'][$form_name] = lang('Field must not be empty !!!',$value);
|
$GLOBALS['egw_info']['etemplate']['validation_errors'][$form_name] = lang('Field must not be empty !!!',$value);
|
||||||
}
|
}
|
||||||
@ -1612,7 +1612,7 @@
|
|||||||
case 'float':
|
case 'float':
|
||||||
case 'text':
|
case 'text':
|
||||||
case 'textarea':
|
case 'textarea':
|
||||||
if ($value === '' && $attr['needed'])
|
if ($value === '' && $attr['needed'] && !$attr['blur'])
|
||||||
{
|
{
|
||||||
$GLOBALS['egw_info']['etemplate']['validation_errors'][$form_name] = lang('Field must not be empty !!!',$value);
|
$GLOBALS['egw_info']['etemplate']['validation_errors'][$form_name] = lang('Field must not be empty !!!',$value);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user