Reporting #20 - correct stats when force=1 on Contribution Detail Report
authorJon Goldberg <jon@megaphonetech.com>
Tue, 5 May 2020 15:37:39 +0000 (11:37 -0400)
committerJon Goldberg <jon@megaphonetech.com>
Tue, 5 May 2020 15:37:39 +0000 (11:37 -0400)
CRM/Report/Form/Contribute/Detail.php

index 81741d02e437289df3f6ddf9d6fd8d7cef28b999..9d4c12d22a02607edeaaa8e4f8a28d04b4704ece 100644 (file)
@@ -183,6 +183,7 @@ class CRM_Report_Form_Contribute_Detail extends CRM_Report_Form {
                 'soft_credits_only' => ts('Soft Credits Only'),
                 'both' => ts('Both'),
               ],
+              'default' => 'contributions_only',
             ],
             'receive_date' => ['operatorType' => CRM_Report_Form::OP_DATE],
             'receipt_date' => ['operatorType' => CRM_Report_Form::OP_DATE],
@@ -534,7 +535,7 @@ GROUP BY {$this->_aliases['civicrm_contribution']}.currency";
       $this->noDisplayContributionOrSoftColumn = TRUE;
     }
 
-    if (CRM_Utils_Array::value('contribution_or_soft_value', $this->_params, 'contributions_only') == 'contributions_only') {
+    if (CRM_Utils_Array::value('contribution_or_soft_value', $this->_params) == 'contributions_only') {
       $this->isContributionBaseMode = TRUE;
     }
     if ($this->isContributionBaseMode &&