Api: Fix Asyncservice did not have proper filesystem access as the job user

This commit is contained in:
nathangray 2021-06-07 14:23:49 -06:00 committed by Hadi Nategh
parent 45758aaada
commit 218e17798d

View File

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