From 3bffea44d993dbf526e76a2b11e7870d9ff456bd Mon Sep 17 00:00:00 2001 From: nielosz Date: Tue, 28 Jun 2016 15:36:38 +0200 Subject: [PATCH] Fix messed display with multiple contacts in one col --- CRM/Activity/BAO/Activity.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/CRM/Activity/BAO/Activity.php b/CRM/Activity/BAO/Activity.php index 2c7b68e96b..2cb1893ebd 100644 --- a/CRM/Activity/BAO/Activity.php +++ b/CRM/Activity/BAO/Activity.php @@ -2546,12 +2546,12 @@ INNER JOIN civicrm_option_group grp ON ( grp.id = val.option_group_id AND grp.n FALSE, $tcID ); - $activity['target_contact_name'] .= $targetTypeImage . CRM_Utils_System::href($tcName, - 'civicrm/contact/view', "reset=1&cid={$tcID}"); + $targetLink = CRM_Utils_System::href($tcName, 'civicrm/contact/view', "reset=1&cid={$tcID}"); + $activity['target_contact_name'] .= "
$targetTypeImage $targetLink
"; } if ($extraCount = $values['target_contact_counter'] - 1) { - $activity['target_contact_name'] .= ";
" . "(" . ts('%1 more', array(1 => $extraCount)) . ")"; + $activity['target_contact_name'] .= "
" . "(" . ts('%1 more', array(1 => $extraCount)) . ")
"; } } elseif (!$values['target_contact_name']) { @@ -2572,11 +2572,13 @@ INNER JOIN civicrm_option_group grp ON ( grp.id = val.option_group_id AND grp.n FALSE, $acID ); - $activity['assignee_contact_name'] .= $assigneeTypeImage . CRM_Utils_System::href($acName, 'civicrm/contact/view', "reset=1&cid={$acID}"); + $assigneeLink = CRM_Utils_System::href($acName, 'civicrm/contact/view', "reset=1&cid={$acID}"); + $activity['assignee_contact_name'] .= "
$assigneeTypeImage $assigneeLink"; $count++; if ($count) { - $activity['assignee_contact_name'] .= "; "; + $activity['assignee_contact_name'] .= ";"; } + $activity['assignee_contact_name'] .= "
"; if ($count == 4) { $activity['assignee_contact_name'] .= "(" . ts('more') . ")"; -- 2.25.1