Skip to content

Commit

Permalink
Do not display waitlist message dev/core/-/issues/4087
Browse files Browse the repository at this point in the history
  • Loading branch information
pradpnayak authored and eileenmcnaughton committed Jan 26, 2023
1 parent d96294d commit da998b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Event/Form/ParticipantFeeSelection.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit da998b8

Please sign in to comment.