From a77fa2b96b8947569aac4b8dd287d20437aa682c Mon Sep 17 00:00:00 2001 From: Jon Goldberg Date: Thu, 23 Jan 2020 20:34:17 -0500 Subject: [PATCH] event#32: Fix bad URL in message template --- CRM/Upgrade/Incremental/MessageTemplates.php | 3 ++- xml/templates/message_templates/participant_confirm_html.tpl | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CRM/Upgrade/Incremental/MessageTemplates.php b/CRM/Upgrade/Incremental/MessageTemplates.php index 2768fc69b1ea..cb7259885992 100644 --- a/CRM/Upgrade/Incremental/MessageTemplates.php +++ b/CRM/Upgrade/Incremental/MessageTemplates.php @@ -201,10 +201,11 @@ protected function getTemplateUpdates() { ], [ 'version' => '5.23.alpha1', - 'upgrade_descriptor' => ts('Add Contributor Name to Offline Contribution receipts'), + 'upgrade_descriptor' => ts('Add Contributor Name to Offline Contribution receipts; fix bad event self-service URL'), 'templates' => [ ['name' => 'contribution_offline_receipt', 'type' => 'text'], ['name' => 'contribution_offline_receipt', 'type' => 'html'], + ['name' => 'participant_confirm_html', 'type' => 'html'], ], ], diff --git a/xml/templates/message_templates/participant_confirm_html.tpl b/xml/templates/message_templates/participant_confirm_html.tpl index 75745fd10fd3..ed1d2b7b0db9 100644 --- a/xml/templates/message_templates/participant_confirm_html.tpl +++ b/xml/templates/message_templates/participant_confirm_html.tpl @@ -39,7 +39,7 @@ {/if} {if $event.allow_selfcancelxfer } {ts}This event allows for{/ts} - {capture assign=selfService}{crmURL p='civicrm/event/selfsvcupdate' q="reset=1&pid=`$participantID`&{contact.checksum}" h=0 a=1 fe=1}{/capture} + {capture assign=selfService}{crmURL p='civicrm/event/selfsvcupdate' q="reset=1&pid=`$participant.id`&{contact.checksum}" h=0 a=1 fe=1}{/capture} {ts}self service cancel or transfer{/ts} {/if}