From 97accfe464bdae648913092749c505d81a824a8e Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Wed, 4 Nov 2009 13:02:05 +0000 Subject: [PATCH] handle timesheet viewtype short, when creating entries with save & new --- timesheet/inc/class.timesheet_ui.inc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/timesheet/inc/class.timesheet_ui.inc.php b/timesheet/inc/class.timesheet_ui.inc.php index 6d8c061271..7945213440 100644 --- a/timesheet/inc/class.timesheet_ui.inc.php +++ b/timesheet/inc/class.timesheet_ui.inc.php @@ -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 {