Use token for event ID
authorEileen McNaughton <emcnaughton@wikimedia.org>
Sat, 16 Sep 2023 03:35:55 +0000 (15:35 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Sat, 16 Sep 2023 20:35:21 +0000 (08:35 +1200)
xml/templates/message_templates/event_offline_receipt_html.tpl
xml/templates/message_templates/event_offline_receipt_text.tpl
xml/templates/message_templates/event_online_receipt_text.tpl

index 9eb47aca0150788f74bf2971a3217bad1be371dd..50a7584736dc9d8ddaa57750564a7a531bde168f 100644 (file)
      {if {event.is_public|boolean}}
       <tr>
        <td colspan="2" {$valueStyle}>
-        {capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
+        {capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id={event.id}" h=0 a=1 fe=1}{/capture}
         <a href="{$icalFeed}">{ts}Download iCalendar entry for this event.{/ts}</a>
        </td>
       </tr>
       <tr>
        <td colspan="2" {$valueStyle}>
-        {capture assign=gCalendar}{crmURL p='civicrm/event/ical' q="gCalendar=1&reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
+        {capture assign=gCalendar}{crmURL p='civicrm/event/ical' q="gCalendar=1&reset=1&id={event.id}" h=0 a=1 fe=1}{/capture}
          <a href="{$gCalendar}">{ts}Add event to Google Calendar{/ts}</a>
        </td>
       </tr>
index 21d18a3ee38f2785960bcb1cfedc3067280656c7..8ce9fb265d74bfeaa014405271d57e5577c8597a 100644 (file)
@@ -68,9 +68,9 @@
 
 
 {if {event.is_public|boolean}}
-{capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
+{capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id={event.id}" h=0 a=1 fe=1}{/capture}
 {ts}Download iCalendar entry for this event.{/ts} {$icalFeed}
-{capture assign=gCalendar}{crmURL p='civicrm/event/ical' q="gCalendar=1&reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
+{capture assign=gCalendar}{crmURL p='civicrm/event/ical' q="gCalendar=1&reset=1&id={event.id}" h=0 a=1 fe=1}{/capture}
 {ts}Add event to Google Calendar{/ts} {$gCalendar}
 {/if}
 
index 6f2f794fbc9b0b1c6e8c711764824710b5b82024..fcc713f2bcdb5d13dcacd26fa8d4e104ad40097d 100644 (file)
@@ -87,9 +87,9 @@
 {ts}Email {/ts}{event.loc_block_id.email_2_id.email}{/if}
 {/if}
 {if {event.is_public|boolean}}
-{capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
+{capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id={event.id}" h=0 a=1 fe=1}{/capture}
 {ts}Download iCalendar entry for this event.{/ts} {$icalFeed}
-{capture assign=gCalendar}{crmURL p='civicrm/event/ical' q="gCalendar=1&reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
+{capture assign=gCalendar}{crmURL p='civicrm/event/ical' q="gCalendar=1&reset=1&id={event.id}" h=0 a=1 fe=1}{/capture}
 {ts}Add event to Google Calendar{/ts} {$gCalendar}
 {/if}