From 34e741be7b99c06a2e2979fea036cb93bc53dfe7 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Fri, 3 Nov 2023 15:50:38 +1300 Subject: [PATCH] Fix unreleased regression - notice on undefined variable This notice is in recently extracted code --- CRM/Contribute/Form/Contribution/Main.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Contribute/Form/Contribution/Main.php b/CRM/Contribute/Form/Contribution/Main.php index 5f7d9aa04a..11d1a28c73 100644 --- a/CRM/Contribute/Form/Contribution/Main.php +++ b/CRM/Contribute/Form/Contribution/Main.php @@ -1802,7 +1802,7 @@ class CRM_Contribute_Form_Contribution_Main extends CRM_Contribute_Form_Contribu $dao = new CRM_Pledge_DAO_PledgeBlock(); $dao->entity_table = 'civicrm_contribution_page'; - $dao->entity_id = $pageID; + $dao->entity_id = $this->getContributionPageID(); if ($dao->find(TRUE)) { CRM_Core_DAO::storeValues($dao, $pledgeBlock); } @@ -1869,7 +1869,7 @@ class CRM_Contribute_Form_Contribution_Main extends CRM_Contribute_Form_Contribu $this->assign('start_date_editable', FALSE); if (!empty($pledgeBlock['is_pledge_start_date_editable'])) { $this->assign('start_date_editable', TRUE); - if ($field == 'calendar_month') { + if ($field === 'calendar_month') { $this->assign('is_date', FALSE); $this->setDefaults(['start_date' => $value]); } -- 2.25.1