From da998b8be6004bc8baa4067178998c92946d3733 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 6160faf18d75..18941b4911b5 100644 --- a/CRM/Event/Form/ParticipantFeeSelection.php +++ b/CRM/Event/Form/ParticipantFeeSelection.php @@ -346,7 +346,7 @@ private function emailReceipt(array $params): void { $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 = [