mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:07 +01:00
When copying a project, if info_from is the same as the old project name, change it to the new project name
This commit is contained in:
parent
5bac30f8c7
commit
7c939f7d58
@ -116,8 +116,9 @@ class infolog_datasource extends datasource
|
||||
if(!($info['info_id'] = $this->infolog_bo->write($info))) return false;
|
||||
|
||||
// link the new infolog against the project and setting info_link_id and evtl. info_from
|
||||
$old_link = $info['info_link_id'] ? egw_link::get_link($info['info_link']) : $info['info_link'];
|
||||
$info['info_link_id'] = egw_link::link('projectmanager',$target,'infolog',$info['info_id'],$element['pe_remark'],0,0,1);
|
||||
if (!$info['info_from'])
|
||||
if (!$info['info_from'] || $old_link && $info['info_from'] == $old_link['title'])
|
||||
{
|
||||
$info['info_from'] = egw_link::title('projectmanager',$target);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user