mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 09:23:28 +01:00
Fix custom contact got changed to template element title when creating project from template
This commit is contained in:
parent
fc211f475f
commit
c7d9577649
@ -165,7 +165,7 @@ class infolog_datasource extends datasource
|
|||||||
$old_link = $info['info_link_id'] ? Link::get_link($info['info_link_id']) : $info['info_link'];
|
$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['info_link_id'] = Link::link('projectmanager',$target,'infolog',$info['info_id'],$element['pe_remark'],0,0,1);
|
||||||
$info['pm_id'] = $target;
|
$info['pm_id'] = $target;
|
||||||
if (!$info['info_from'] || $old_link && $info['info_from'] == $old_link['title'])
|
if (!$info['info_from'] || $old_link && (int)$old_link['id'] && $info['info_from'] == $old_link['title'])
|
||||||
{
|
{
|
||||||
$info['info_from'] = Link::title('projectmanager',$target);
|
$info['info_from'] = Link::title('projectmanager',$target);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user