in addition,
the actual code produces a bug. If the linking array contains a file (attachment) it breaks the linking, only links will be created till the first file link comes up, so if this happens in the first loop no link will be created in the new tracker entry.
if ($copy_link[‘app’] != ‘file’)
{
egw_link::link(‘tracker’, $content[‘link_to’][‘to_id’], $copy_link[‘app’], $copy_link[‘id’],$copy_link[‘remark’]);
}
this would prevent it… or you just implement my code above if you like it.
But a solution to symlink files while generating somthing of something, eg. infolog -> tracker, cal -> infolog would be even better, because I wouldn’t like to have a dozen of identical, copied files… what do you think?
Edit: this happens in trunk and also in the official demo of EPL11.1
Jürgen