CRM-15917 - CiviReport - don't hide display name when there are two contacts with...
authorJon goldberg <jon@palantetech.coop>
Fri, 6 Feb 2015 00:53:18 +0000 (19:53 -0500)
committerJon goldberg <jon@palantetech.coop>
Fri, 6 Feb 2015 00:53:18 +0000 (19:53 -0500)
CRM/Report/Form/Member/Detail.php

index 3b85973ab65159fc7b22647c18e6cfb032cc8720..c5704d9d0361f9fc9765b9cc4afc60c2809ae1cd 100644 (file)
@@ -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)) {