mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:07 +01:00
fixed wrong "Startdate must be before enddate" validation error, if no start- or end-date given
This commit is contained in:
parent
6ae1ca93fd
commit
2072869ffe
@ -1633,10 +1633,10 @@ class infolog_ui
|
||||
}
|
||||
}
|
||||
//Validate the enddate must be grather than startdate
|
||||
if (isset($content['info_enddate']) && isset($content['info_startdate']))
|
||||
if (!empty($content['info_enddate']) && !empty($content['info_startdate']))
|
||||
{
|
||||
$duration_date = $content['info_enddate']-$content['info_startdate'];
|
||||
if (isset($duration_date) && $duration_date < 0 )
|
||||
if ($duration_date < 0)
|
||||
{
|
||||
$this->tmpl->set_validation_error('info_startdate', lang('Startdate must be before Enddate!!!'));
|
||||
$button = $action = ''; // stop save or apply
|
||||
|
Loading…
Reference in New Issue
Block a user