From f01ab4e66566448127c26705e1820f1f48338ae7 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 1 Apr 2015 23:16:36 +0000 Subject: [PATCH] When creating an infolog from other entries, only set primary contact if there's only one entry --- infolog/inc/class.infolog_ui.inc.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/infolog/inc/class.infolog_ui.inc.php b/infolog/inc/class.infolog_ui.inc.php index 5542af469a..44f31a97f9 100644 --- a/infolog/inc/class.infolog_ui.inc.php +++ b/infolog/inc/class.infolog_ui.inc.php @@ -1963,8 +1963,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);