* Timesheet: Fix project link was missing when changing project after clicking "Save & New"

This commit is contained in:
nathangray 2019-12-13 09:42:39 -07:00
parent 20766607f5
commit 06f8f7456d

View File

@ -239,6 +239,7 @@ class timesheet_ui extends timesheet_bo
if ($this->data['old_pm_id'])
{
Link::unlink2(0,TIMESHEET_APP,$content['link_to']['to_id'],0,'projectmanager',$this->data['old_pm_id']);
unset($content['link_to']['to_id']['projectmanager:'.$this->data['old_pm_id']]);
unset($this->data['old_pm_id']);
}
}