From 3da9fd47e48f7042293570f1c1cf415d72650109 Mon Sep 17 00:00:00 2001 From: monishdeb Date: Sat, 19 Sep 2015 01:23:49 +0530 Subject: [PATCH 1/2] CRM-17246 fix - Contact name showing in Contribution summary report https://issues.civicrm.org/jira/browse/CRM-17246 --- CRM/Report/Form/Contribute/Summary.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/CRM/Report/Form/Contribute/Summary.php b/CRM/Report/Form/Contribute/Summary.php index 0baa89be4a80..1dff30d45f68 100644 --- a/CRM/Report/Form/Contribute/Summary.php +++ b/CRM/Report/Form/Contribute/Summary.php @@ -60,7 +60,15 @@ public function __construct() { $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')), From ac58d438808ffb37c9d571a5515738fe00858e04 Mon Sep 17 00:00:00 2001 From: monishdeb Date: Sat, 19 Sep 2015 01:38:55 +0530 Subject: [PATCH 2/2] format fix --- CRM/Report/Form/Contribute/Summary.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Report/Form/Contribute/Summary.php b/CRM/Report/Form/Contribute/Summary.php index 1dff30d45f68..712019d3119b 100644 --- a/CRM/Report/Form/Contribute/Summary.php +++ b/CRM/Report/Form/Contribute/Summary.php @@ -66,7 +66,7 @@ public function __construct() { 'sort_name' => array( 'title' => ts('Contact Name'), 'no_repeat' => TRUE, - ) + ), ) ), 'grouping' => 'contact-fields',