From 47b91f90aea3d0d9c1e8f99ee82fd077ee832035 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Sat, 15 Jul 2023 09:39:29 +1000 Subject: [PATCH] [REF][PHP8.2] Fix Deprectation notice due to dynamic properties on the Contribute History report --- CRM/Report/Form/Contribute/History.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/CRM/Report/Form/Contribute/History.php b/CRM/Report/Form/Contribute/History.php index 997c47208a..900454e192 100644 --- a/CRM/Report/Form/Contribute/History.php +++ b/CRM/Report/Form/Contribute/History.php @@ -20,6 +20,12 @@ class CRM_Report_Form_Contribute_History extends CRM_Report_Form { */ protected $_relationshipColumns = []; + protected $_relationshipFrom = ''; + + protected $_relationshipWhere = ''; + + protected $_contributionClauses = []; + protected $_customGroupExtends = [ 'Contact', 'Individual', @@ -397,8 +403,6 @@ class CRM_Report_Form_Contribute_History extends CRM_Report_Form { public function where() { $whereClauses = $havingClauses = $relationshipWhere = []; - $this->_relationshipWhere = ''; - $this->_contributionClauses = []; foreach ($this->_columns as $tableName => $table) { if (array_key_exists('filters', $table)) { -- 2.25.1