event#32: Fix bad URL in message template
authorJon Goldberg <jon@megaphonetech.com>
Fri, 24 Jan 2020 01:34:17 +0000 (20:34 -0500)
committerJon Goldberg <jon@megaphonetech.com>
Fri, 24 Jan 2020 16:00:43 +0000 (11:00 -0500)
CRM/Upgrade/Incremental/MessageTemplates.php
xml/templates/message_templates/participant_confirm_html.tpl

index 2768fc69b1ea6ddfe5a3b6b6c3dc7453b637bde8..1a7c945a800c33c6f535e87097f0dbcd0b0f1e8e 100644 (file)
@@ -201,10 +201,11 @@ class CRM_Upgrade_Incremental_MessageTemplates {
       ],
       [
         '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', 'type' => 'html'],
         ],
       ],
 
index 75745fd10fd3d1a30be30358435c95593bb6fc6a..ed1d2b7b0db90d4d9f71837e27f653c073aedf6f 100644 (file)
@@ -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}
        <a href="{$selfService}"> {ts}self service cancel or transfer{/ts}</a>
   {/if}