From 1a346e705be1821f099237d464b2ff6f2c20ba2a Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Wed, 18 Jan 2023 14:43:44 +0000 Subject: [PATCH] Do not display waitlist message dev/core/-/issues/4087 --- CRM/Event/Form/ParticipantFeeSelection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Event/Form/ParticipantFeeSelection.php b/CRM/Event/Form/ParticipantFeeSelection.php index 6160faf18d..18941b4911 100644 --- a/CRM/Event/Form/ParticipantFeeSelection.php +++ b/CRM/Event/Form/ParticipantFeeSelection.php @@ -346,7 +346,7 @@ class CRM_Event_Form_ParticipantFeeSelection extends CRM_Core_Form { $this->_contributorDisplayName = ($this->_contributorDisplayName == ' ') ? $this->_contributorEmail : $this->_contributorDisplayName; $waitStatus = CRM_Event_PseudoConstant::participantStatus(NULL, "class = 'Waiting'"); - $this->assign('isOnWaitlist', (bool) ($params['status_id'][$waitStatus] ?? FALSE)); + $this->assign('isOnWaitlist', (bool) in_array($params['status_id'], $waitStatus)); $this->assign('contactID', $this->_contactId); $sendTemplateParams = [ -- 2.25.1