Another fix for infolog contact and projectmanager links handler - missing pm_id

This commit is contained in:
nathangray 2017-01-16 13:58:52 -07:00
parent 9ba38a86f8
commit 5ad67a4c85

View File

@ -455,6 +455,11 @@ class infolog_bo
{ {
return False; return False;
} }
// if link is a project and no other project selected, also add as project
if ($app == 'projectmanager' && $id && !$info['pm_id'])
{
$info['old_pm_id'] = $info['pm_id'] = $id;
}
$info['info_link'] = array( $info['info_link'] = array(
'app' => $app, 'app' => $app,
'id' => $id, 'id' => $id,
@ -610,8 +615,10 @@ class infolog_bo
{ {
$data['info_subject'] = ''; $data['info_subject'] = '';
} }
if ($run_link_id2from) $this->link_id2from($data); if ($run_link_id2from)
{
$this->link_id2from($data);
}
// convert server- to user-time // convert server- to user-time
if ($date_format == 'ts') if ($date_format == 'ts')
{ {