* Infolog - fix creating projects from template lost infologs

This commit is contained in:
nathangray 2017-12-08 11:06:30 -07:00
parent d52ede97c5
commit 869d8ed6b6

View File

@ -164,6 +164,7 @@ class infolog_datasource extends datasource
// link the new infolog against the project and setting info_link_id and evtl. info_from
$old_link = $info['info_link_id'] ? Link::get_link($info['info_link_id']) : $info['info_link'];
$info['info_link_id'] = Link::link('projectmanager',$target,'infolog',$info['info_id'],$element['pe_remark'],0,0,1);
$info['pm_id'] = $target;
if (!$info['info_from'] || $old_link && $info['info_from'] == $old_link['title'])
{
$info['info_from'] = Link::title('projectmanager',$target);