forked from extern/egroupware
Don't try to format null dates, just pass null back to app
This commit is contained in:
parent
8c20d825cb
commit
555582eb44
@ -79,6 +79,10 @@ class etemplate_widget_date extends etemplate_widget_transformer
|
|||||||
{
|
{
|
||||||
self::set_validation_error($form_name,lang('Field must not be empty !!!'));
|
self::set_validation_error($form_name,lang('Field must not be empty !!!'));
|
||||||
}
|
}
|
||||||
|
elseif (is_null($value))
|
||||||
|
{
|
||||||
|
$valid = null;
|
||||||
|
}
|
||||||
elseif ($this->type == 'date-duration')
|
elseif ($this->type == 'date-duration')
|
||||||
{
|
{
|
||||||
$valid = $value;
|
$valid = $value;
|
||||||
|
Loading…
Reference in New Issue
Block a user