From 2d97372d61b73e4c7b8d963e84aabe453065dfd8 Mon Sep 17 00:00:00 2001 From: eileen Date: Sun, 14 Jul 2013 14:59:29 +1200 Subject: [PATCH] CRM-13051 pledge detail report provides inaccurate totals Conflicts: packages --- CRM/Report/Form/Pledge/Detail.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CRM/Report/Form/Pledge/Detail.php b/CRM/Report/Form/Pledge/Detail.php index 6fcf5c4aca..6d179b8e02 100644 --- a/CRM/Report/Form/Pledge/Detail.php +++ b/CRM/Report/Form/Pledge/Detail.php @@ -293,7 +293,10 @@ class CRM_Report_Form_Pledge_Detail extends CRM_Report_Form { function statistics(&$rows) { $statistics = parent::statistics($rows); - + //regenerate the from field without extra left join on pledge payments + $this->_totalPaid = FALSE; + $this->from(); + $this->customDataFrom(); if (!$this->_having) { $totalAmount = $average = array(); $count = 0; -- 2.25.1