Fix for lost links when copying. All links get copied now, including the one in the header.

This commit is contained in:
Nathan Gray 2010-02-22 21:28:55 +00:00
parent 7209617eaa
commit 3f46d3f4e3

View File

@ -854,7 +854,15 @@ class infolog_ui
unset($content['info_id']);
unset ($info_id);
unset($content['info_datemodified']);
unset($contentt['info_modifier']);
unset($content['info_modifier']);
// Get links to be copied
$content['link_to']['to_id'] = egw_link::get_links($content['link_to']['to_app'], $content['link_to']['to_id']);
if($content['info_link_id']) {
$info_link_id = $content['info_link_id'];
unset($content['info_link_id']);
}
$content['info_owner'] = !(int)$this->owner || !$this->bo->check_perms(EGW_ACL_ADD,0,$this->owner) ? $this->user : $this->owner;
$content['msg'] = lang('Infolog copied - the copy can now be edited');
$content['info_subject'] = lang('Copy of:').' '.$content['info_subject'];