X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FEvent%2FForm%2FParticipantFeeSelection.php;h=ba6f5f4e1c0472941a52c583bbe43592e57154b6;hb=c71d4550ef1244cbbc814714d2c1df9f32119223;hp=19a0a1174e424266d4a9171c47f5466d8cc0e7f7;hpb=51efd9c43f2157c34443d3f1bbd0a13d32e90c0d;p=civicrm-core.git diff --git a/CRM/Event/Form/ParticipantFeeSelection.php b/CRM/Event/Form/ParticipantFeeSelection.php index 19a0a1174e..ba6f5f4e1c 100644 --- a/CRM/Event/Form/ParticipantFeeSelection.php +++ b/CRM/Event/Form/ParticipantFeeSelection.php @@ -285,7 +285,7 @@ class CRM_Event_Form_ParticipantFeeSelection extends CRM_Core_Form { $this->assign('module', 'Event Registration'); //use of the message template below requires variables in different format $event = $events = []; - $returnProperties = ['fee_label', 'start_date', 'end_date', 'event_tz', 'is_show_location', 'title']; + $returnProperties = ['fee_label', 'start_date', 'end_date', 'is_show_location', 'title']; //get all event details. CRM_Core_DAO::commonRetrieveAll('CRM_Event_DAO_Event', 'id', $params['event_id'], $events, $returnProperties); @@ -293,8 +293,6 @@ class CRM_Event_Form_ParticipantFeeSelection extends CRM_Core_Form { unset($event['start_date']); unset($event['end_date']); - CRM_Event_BAO_Event::setOutputTimeZone($event); - $role = CRM_Event_PseudoConstant::participantRole(); $participantRoles = $params['role_id'] ?? NULL; if (is_array($participantRoles)) { @@ -358,14 +356,16 @@ class CRM_Event_Form_ParticipantFeeSelection extends CRM_Core_Form { $this->assign('isOnWaitlist', TRUE); } $this->assign('contactID', $this->_contactId); - $this->assign('participantID', $this->_participantId); $sendTemplateParams = [ - 'groupName' => 'msg_tpl_workflow_event', - 'valueName' => 'event_offline_receipt', + 'workflow' => 'event_offline_receipt', 'contactId' => $this->_contactId, 'isTest' => FALSE, 'PDFFilename' => ts('confirmation') . '.pdf', + 'modelProps' => [ + 'participantID' => $this->_participantId, + 'eventID' => $params['event_id'], + ], ]; // try to send emails only if email id is present