From: Jamie McClelland Date: Tue, 3 Dec 2019 19:38:10 +0000 (-0500) Subject: allow PCP report to filter on contribution status X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=cfd9f6cf5550c2ea6ce8fa486128bab64a8dcef4;p=civicrm-core.git allow PCP report to filter on contribution status Without this filter, incomplete contributions are included in the report which really throws off the total. --- diff --git a/CRM/Report/Form/Contribute/PCP.php b/CRM/Report/Form/Contribute/PCP.php index 5f5e9e46d1..8b0ec5f5e5 100644 --- a/CRM/Report/Form/Contribute/PCP.php +++ b/CRM/Report/Form/Contribute/PCP.php @@ -173,6 +173,14 @@ class CRM_Report_Form_Contribute_PCP extends CRM_Report_Form { ], ], ], + 'filters' => [ + 'contribution_status_id' => [ + 'title' => ts('Contribution Status'), + 'operatorType' => CRM_Report_Form::OP_MULTISELECT, + 'options' => CRM_Contribute_PseudoConstant::contributionStatus(), + 'default' => [1], + ], + ], 'grouping' => 'pcp-fields', ], 'civicrm_financial_trxn' => [