CRM-17246 fix - Contact name showing in Contribution summary report
authormonishdeb <monish.deb@webaccessglobal.com>
Fri, 18 Sep 2015 19:53:49 +0000 (01:23 +0530)
committermonishdeb <monish.deb@webaccessglobal.com>
Fri, 18 Sep 2015 19:53:49 +0000 (01:23 +0530)
https://issues.civicrm.org/jira/browse/CRM-17246

CRM/Report/Form/Contribute/Summary.php

index 0baa89be4a809ba250fb8033c62d49d5f0c4d0b4..1dff30d45f68efd461149758bf8e01c13b471408 100644 (file)
@@ -60,7 +60,15 @@ class CRM_Report_Form_Contribute_Summary extends CRM_Report_Form {
     $this->_columns = array(
       'civicrm_contact' => array(
         'dao' => 'CRM_Contact_DAO_Contact',
-        'fields' => $this->getBasicContactFields(),
+        'fields' => array_merge(
+          $this->getBasicContactFields(),
+          array(
+            'sort_name' => array(
+              'title' => ts('Contact Name'),
+              'no_repeat' => TRUE,
+            )
+          )
+        ),
         'grouping' => 'contact-fields',
         'group_bys' => array(
           'id' => array('title' => ts('Contact ID')),