From d21eb1c1e68d5ee41c25e9ae984b8068c3ae6c85 Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 11 Jul 2023 15:24:18 -0600 Subject: [PATCH] Timesheet: Do not include events in new timesheet when save & new button is clicked on a timesheet with events --- timesheet/inc/class.timesheet_ui.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/timesheet/inc/class.timesheet_ui.inc.php b/timesheet/inc/class.timesheet_ui.inc.php index fb4c691ceb..d9c7c55cd6 100644 --- a/timesheet/inc/class.timesheet_ui.inc.php +++ b/timesheet/inc/class.timesheet_ui.inc.php @@ -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]); }