Fix bug in timesheet simple mode where Save & New, then selecting a different project did not change the title to match the new project

This commit is contained in:
nathangray 2016-10-18 10:01:54 -06:00
parent f71131d28d
commit 41bcceb44e

View File

@ -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'])
{