Don't try to format null dates, just pass null back to app

This commit is contained in:
Nathan Gray 2013-03-20 21:19:56 +00:00
parent 8c20d825cb
commit 555582eb44

View File

@ -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;