From 5ac295e61e76de0fbf6a9248e02408175afd578b Mon Sep 17 00:00:00 2001 From: Jon goldberg Date: Thu, 5 Feb 2015 19:53:18 -0500 Subject: [PATCH] CRM-15917 - CiviReport - don't hide display name when there are two contacts with the same name --- CRM/Report/Form/Member/Detail.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CRM/Report/Form/Member/Detail.php b/CRM/Report/Form/Member/Detail.php index 3b85973ab6..c5704d9d03 100644 --- a/CRM/Report/Form/Member/Detail.php +++ b/CRM/Report/Form/Member/Detail.php @@ -70,7 +70,6 @@ class CRM_Report_Form_Member_Detail extends CRM_Report_Form { 'title' => ts('Contact Name'), 'required' => TRUE, 'default' => TRUE, - 'no_repeat' => TRUE, ), 'id' => array( 'no_display' => TRUE, @@ -414,6 +413,10 @@ class CRM_Report_Form_Member_Detail extends CRM_Report_Form { in_array($colVal, $checkList[$colName]) ) { $rows[$rowNum][$colName] = ""; + // CRM-15918: Don't blank the name if it's a different contact + if($colName == 'civicrm_contact_exposed_id') { + $rows[$rowNum]['civicrm_contact_sort_name'] = ""; + } $repeatFound = TRUE; } if (in_array($colName, $this->_noRepeats)) { -- 2.25.1