From 432b43b266da7341793a0fa0792c0dcc9a57f06d Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Wed, 29 Nov 2023 22:58:26 +1300 Subject: [PATCH] Move the pre-assign of pcpBlock further up This is assigned false, & then assigned again if there is a value to prevent notices (already) but the first assign isn't always done so we still have notices --- CRM/Contribute/Form/Contribution/ThankYou.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contribute/Form/Contribution/ThankYou.php b/CRM/Contribute/Form/Contribution/ThankYou.php index d24a83b607..c0335261b6 100644 --- a/CRM/Contribute/Form/Contribution/ThankYou.php +++ b/CRM/Contribute/Form/Contribution/ThankYou.php @@ -132,9 +132,9 @@ class CRM_Contribute_Form_Contribution_ThankYou extends CRM_Contribute_Form_Cont $qParams = "reset=1&id={$this->_id}"; //pcp elements + $this->assign('pcpBlock', FALSE); if ($this->_pcpId) { $qParams .= "&pcpId={$this->_pcpId}"; - $this->assign('pcpBlock', FALSE); // display honor roll data only if it's enabled for the PCP page if (!empty($this->_pcpInfo['is_honor_roll'])) { -- 2.25.1