mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:05:16 +01:00
fix to allow setting needed attribute for dates
This commit is contained in:
parent
89dadea91f
commit
6b3eda15a6
@ -188,6 +188,13 @@
|
||||
unset($cell['size']);
|
||||
return True;
|
||||
}
|
||||
if ($cell['needed'])
|
||||
{
|
||||
$GLOBALS['egw_info']['etemplate']['to_process'][$name] = array(
|
||||
'type' => 'ext-'.$type,
|
||||
'needed' => $cell['needed'],
|
||||
);
|
||||
}
|
||||
$tpl =& new etemplate;
|
||||
$tpl->init('*** generated fields for date','','',0,'',0,0); // make an empty template
|
||||
// keep the editor away from the generated tmpls
|
||||
@ -367,7 +374,7 @@
|
||||
// checking the date is a correct one
|
||||
if (!checkdate($value['m'],$value['d'],$value['Y']))
|
||||
{
|
||||
$GLOBALS['phpgw_info']['etemplate']['validation_errors'][$name] = lang("'%1' is not a valid date !!!",
|
||||
$GLOBALS['phpgw_info']['etemplate']['validation_errors'][$name] .= lang("'%1' is not a valid date !!!",
|
||||
$GLOBALS['phpgw']->common->dateformatorder($value['Y'],$value['m'],$value['d'],true));
|
||||
}
|
||||
$data_format = $extension_data['data_format'];
|
||||
|
Loading…
Reference in New Issue
Block a user