mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
handle timesheet viewtype short, when creating entries with save & new
This commit is contained in:
parent
54c8e21c61
commit
8498cd7f3d
@ -90,6 +90,11 @@ class timesheet_ui extends timesheet_bo
|
||||
{
|
||||
//echo "<p>ts_start=$content[ts_start], start_time=$content[start_time], end_time=$content[end_time], ts_duration=$content[ts_duration], ts_quantity=$content[ts_quantity]</p>\n";
|
||||
// we only need 2 out of 3 values from start-, end-time or duration (the date in ts_start is always required!)
|
||||
if($this->ts_viewtype == 'short')
|
||||
{
|
||||
unset($content['start_time']);
|
||||
unset($content['end_time']);
|
||||
}
|
||||
if ($content['start_time']) // start-time specified
|
||||
{
|
||||
$content['ts_start'] += $content['start_time'];
|
||||
|
Loading…
Reference in New Issue
Block a user