From f1de71ffae3e9e9b2273da084639ac4fab41e268 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Sat, 30 Sep 2023 21:07:14 +1300 Subject: [PATCH] Do assign unconditionally --- CRM/Member/Form/Membership.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Member/Form/Membership.php b/CRM/Member/Form/Membership.php index 9a4cf9b0be..e6e1debc70 100644 --- a/CRM/Member/Form/Membership.php +++ b/CRM/Member/Form/Membership.php @@ -377,8 +377,8 @@ DESC limit 1"); NULL, ['onchange' => "buildAmount( this.value );"] ); } - $this->assign('hasPriceSets', $buildPriceSet); } + $this->assign('hasPriceSets', $buildPriceSet ?? NULL); if ($this->_action & CRM_Core_Action::DELETE) { $this->addButtons([ -- 2.25.1