From c90bacf985cdc3058efc74df0575c3315eb18459 Mon Sep 17 00:00:00 2001 From: eileenmcnaugton Date: Tue, 25 Aug 2015 11:35:41 +1200 Subject: [PATCH] CRM-17078 contribution summary report fatals when custom data included --- CRM/Report/Form/Contribute/Summary.php | 1 + 1 file changed, 1 insertion(+) diff --git a/CRM/Report/Form/Contribute/Summary.php b/CRM/Report/Form/Contribute/Summary.php index c5bd21f4db..fd5f4b1290 100644 --- a/CRM/Report/Form/Contribute/Summary.php +++ b/CRM/Report/Form/Contribute/Summary.php @@ -527,6 +527,7 @@ class CRM_Report_Form_Contribute_Summary extends CRM_Report_Form { $group = "\nGROUP BY {$this->_aliases['civicrm_contribution']}.currency"; $this->from('contribution'); + $this->customDataFrom(); $contriSQL = "SELECT COUNT({$this->_aliases['civicrm_contribution']}.total_amount ) as civicrm_contribution_total_amount_count, SUM({$this->_aliases['civicrm_contribution']}.total_amount ) as civicrm_contribution_total_amount_sum, -- 2.25.1