From 09428385931b61009ece79ff2f2bf693cc903639 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Fri, 9 Jun 2023 18:52:06 +1200 Subject: [PATCH] Fix e-notices on New Participant form, strict smarty --- CRM/Event/Form/Participant.php | 6 ++---- templates/CRM/Event/Form/Participant.tpl | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/CRM/Event/Form/Participant.php b/CRM/Event/Form/Participant.php index 0fcd0c4348..5a52eb3a58 100644 --- a/CRM/Event/Form/Participant.php +++ b/CRM/Event/Form/Participant.php @@ -676,14 +676,12 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment CRM_Campaign_BAO_Campaign::addCampaign($this, $campaignId); $this->add('datepicker', 'register_date', ts('Registration Date'), [], TRUE, ['time' => TRUE]); - if ($this->_id) { - $this->assign('entityID', $this->_id); - } + $this->assign('entityID', $this->_id); $this->addSelect('role_id', ['multiple' => TRUE, 'class' => 'huge'], TRUE); // CRM-4395 - $checkCancelledJs = ['onchange' => "return sendNotification( );"]; + $checkCancelledJs = ['onchange' => 'return sendNotification( );']; $confirmJS = NULL; if ($this->_onlinePendingContributionId) { $cancelledparticipantStatusId = array_search('Cancelled', CRM_Event_PseudoConstant::participantStatus()); diff --git a/templates/CRM/Event/Form/Participant.tpl b/templates/CRM/Event/Form/Participant.tpl index 551b745403..af5bdea715 100644 --- a/templates/CRM/Event/Form/Participant.tpl +++ b/templates/CRM/Event/Form/Participant.tpl @@ -151,7 +151,7 @@ {/if} {*include custom data js file*} - {include file="CRM/common/customData.tpl"} + {include file="CRM/common/customData.tpl" groupID=''}