CRM-13051 pledge detail report provides inaccurate totals
authoreileen <eileen@fuzion.co.nz>
Sun, 14 Jul 2013 02:59:29 +0000 (14:59 +1200)
committereileen <eileen@fuzion.co.nz>
Thu, 22 Aug 2013 11:05:42 +0000 (23:05 +1200)
Conflicts:

packages

CRM/Report/Form/Pledge/Detail.php

index 6fcf5c4aca7fdd25693d1816ed49a32be4e8cbaa..6d179b8e0201c71f0e45dee31b99211f2b4a9016 100644 (file)
@@ -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;