handle timesheet viewtype short, when creating entries with save & new

This commit is contained in:
Klaus Leithoff 2009-11-04 13:02:05 +00:00
parent 914861ac59
commit 97accfe464

View File

@ -107,7 +107,10 @@ class timesheet_ui extends timesheet_bo
$msg = lang('only Admin can edit this status');
}
}
if ($this->ts_viewtype == 'short')
{
$content['start_time']=$content['end_time']='00:00';
}
// we only need 2 out of 3 values from start-, end-time or duration (the date in ts_start is always required!)
if ($content['start_time'] != '00:00') // start-time specified
{