From e9b2593664f37c424c78b3e3557bd85ebc26a564 Mon Sep 17 00:00:00 2001 From: Eileen Date: Fri, 6 Dec 2013 13:10:16 +1300 Subject: [PATCH] enotice fix on report to pass tests --- CRM/Report/Form/Contribute/Detail.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CRM/Report/Form/Contribute/Detail.php b/CRM/Report/Form/Contribute/Detail.php index 243fff34a2..6a31d78970 100644 --- a/CRM/Report/Form/Contribute/Detail.php +++ b/CRM/Report/Form/Contribute/Detail.php @@ -43,6 +43,8 @@ class CRM_Report_Form_Contribute_Detail extends CRM_Report_Form { protected $_summary = NULL; protected $_allBatches = NULL; + protected $_softFrom = NULL; + protected $_customGroupExtends = array( 'Contribution'); function __construct() { @@ -540,7 +542,7 @@ class CRM_Report_Form_Contribute_Detail extends CRM_Report_Form { ); // Stats for soft credits - if (CRM_Utils_Array::value('contribution_or_soft_value', $this->_params) != 'contributions_only') { + if ($this->_softFrom && CRM_Utils_Array::value('contribution_or_soft_value', $this->_params) != 'contributions_only') { $totalAmount = $average = array(); $count = 0; $select = " -- 2.25.1