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 a57e02c77f
commit d21eb1c1e6

View File

@ -325,7 +325,8 @@ class timesheet_ui extends timesheet_bo
}
// create a new entry
$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]);
}