When creating an infolog from other entries, only set primary contact if there's only one entry

This commit is contained in:
Nathan Gray 2015-04-01 23:14:21 +00:00
parent 5edd9b902a
commit 0142bcb50c

View File

@ -1968,8 +1968,12 @@ class infolog_ui
$pm_links = array($action_id);
default: // to allow other apps to participate
$content['info_subject'] = egw_link::title($action, $id);
$content['info_contact'] = $action.':'.$action_id;
foreach (explode(',', $action_id) as $n => $id)
$action_ids = explode(',',$action_id);
if(count($action_ids) == 1)
{
$content['info_contact'] = $action.':'.$action_id;
}
foreach ($action_ids as $n => $id)
{
egw_link::link('infolog', $content['link_to']['to_id'], $action, $id);