Timesheet: Do not include events in new timesheet when save & new button is clicked on a timesheet with events

This commit is contained in:
nathan 2023-07-11 15:24:18 -06:00
parent d158ab04bc
commit 8b86bd149f

View File

@ -325,7 +325,8 @@ class timesheet_ui extends timesheet_bo
} }
// create a new entry // create a new entry
$this->data['ts_start'] += 60 * $this->data['ts_duration']; $this->data['ts_start'] += 60 * $this->data['ts_duration'];
foreach(array('ts_id','ts_title','ts_description','ts_duration','ts_quantity','ts_modified','ts_modifier','link_to') as $name) foreach(array('ts_id', 'ts_title', 'ts_description', 'ts_duration', 'ts_quantity',
'ts_modified', 'ts_modifier', 'link_to', 'events') as $name)
{ {
unset($this->data[$name]); unset($this->data[$name]);
} }