From cfd9f6cf5550c2ea6ce8fa486128bab64a8dcef4 Mon Sep 17 00:00:00 2001 From: Jamie McClelland Date: Tue, 3 Dec 2019 14:38:10 -0500 Subject: [PATCH] allow PCP report to filter on contribution status Without this filter, incomplete contributions are included in the report which really throws off the total. --- CRM/Report/Form/Contribute/PCP.php | 8 ++++++++ 1 file changed, 8 insertions(+) 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' => [ -- 2.25.1