class.uiinfolog.edit can handle the action_id now with multiple IDs from

the Addressbook. They are all linked now.
This commit is contained in:
Stefan Becker 2008-04-23 08:27:49 +00:00
parent 69ac5df990
commit 45e293e989

View File

@ -907,7 +907,6 @@ class uiinfolog
//echo "<p>uiinfolog::edit: info_id=$info_id, action='$action', action_id='$action_id', type='$type', referer='$referer'</p>\n";
$content = $this->bo->read( $info_id || $action != 'sp' ? $info_id : $action_id );
if (is_numeric($_REQUEST['cat_id']))
{
$content['info_cat'] = (int) $_REQUEST['cat_id'];
@ -1004,6 +1003,13 @@ class uiinfolog
case 'projects':
case 'calendar':
default: // to allow other apps to participate
if (strpos($action_id,',') !== false)
{
foreach (explode(',',$action_id) as $id)
{
egw_link::link('infolog',$content['link_to']['to_id'],$action,$id);
}
}
$content['info_contact'] = $action.':'.$action_id;
$content['blur_title'] = egw_link::title($action,$action_id);