From 41bcceb44e7fead219d64b82b00fb57c38f23086 Mon Sep 17 00:00:00 2001 From: nathangray Date: Tue, 18 Oct 2016 10:01:54 -0600 Subject: [PATCH] Fix bug in timesheet simple mode where Save & New, then selecting a different project did not change the title to match the new project --- timesheet/inc/class.timesheet_ui.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/timesheet/inc/class.timesheet_ui.inc.php b/timesheet/inc/class.timesheet_ui.inc.php index 5d13ef3f21..fa35cb693d 100644 --- a/timesheet/inc/class.timesheet_ui.inc.php +++ b/timesheet/inc/class.timesheet_ui.inc.php @@ -199,7 +199,9 @@ class timesheet_ui extends timesheet_bo // set ts_title to ts_project if short viewtype (title is not editable) if($this->ts_viewtype == 'short') { - $this->data['ts_title'] = $this->data['ts_project']; + $this->data['ts_title'] = $this->data['ts_project'] = $this->data['pm_id'] ? + Link::title('projectmanager', $this->data['pm_id']) : + $this->data['ts_project']; } if (!$this->data['ts_title']) {