From 95c191752e66f73237b1fd7d4128eea4f0c09e90 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Wed, 18 Oct 2023 10:34:22 +1300 Subject: [PATCH] Move assignment out of if --- CRM/Contribute/Form/ContributionBase.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/CRM/Contribute/Form/ContributionBase.php b/CRM/Contribute/Form/ContributionBase.php index 7130487d62..5bcd399611 100644 --- a/CRM/Contribute/Form/ContributionBase.php +++ b/CRM/Contribute/Form/ContributionBase.php @@ -487,10 +487,7 @@ class CRM_Contribute_Form_ContributionBase extends CRM_Core_Form { $this->assign('linkText', $linkText); } - //set pledge block if block id is set - if (!empty($this->_values['pledge_block_id'])) { - $this->assign('pledgeBlock', TRUE); - } + $this->assign('pledgeBlock', !empty($this->_values['pledge_block_id'])); // @todo - move this check to `getMembershipBlock` if (!$this->isFormSupportsNonMembershipContributions() && -- 2.25.1