From a1ce139606c4af0a92b3d96fc1eee564655eda49 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Mon, 22 May 2023 23:55:24 +1200 Subject: [PATCH] Replace isset with token for pay_later_receipt As tested in https://github.com/civicrm/civicrm-core/pull/26294/files#diff-a5d237ba4e392d0e8ad764a535315f0b1101cc5ca61c39b4e572de42f5c6b4bcR676 this token works & removes one of the breaky issets --- xml/templates/message_templates/event_online_receipt_html.tpl | 2 +- xml/templates/message_templates/event_online_receipt_text.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xml/templates/message_templates/event_online_receipt_html.tpl b/xml/templates/message_templates/event_online_receipt_html.tpl index 97ec41c01a..b0de224f35 100644 --- a/xml/templates/message_templates/event_online_receipt_html.tpl +++ b/xml/templates/message_templates/event_online_receipt_html.tpl @@ -48,7 +48,7 @@

{ts}Once your registration has been reviewed, you will receive an email with a link to a web page where you can complete the registration process.{/ts}

{/if} {elseif !empty($is_pay_later) && empty($isAmountzero) && empty($isAdditionalParticipant)} -

{if isset($pay_later_receipt)}{$pay_later_receipt}{/if}

{* FIXME: this might be text rather than HTML *} +

{if {event.pay_later_receipt|boolean}}{event.pay_later_receipt|boolean}{/if}

{* FIXME: this might be text rather than HTML *} {/if} diff --git a/xml/templates/message_templates/event_online_receipt_text.tpl b/xml/templates/message_templates/event_online_receipt_text.tpl index bacdec2bfd..2153d29d15 100644 --- a/xml/templates/message_templates/event_online_receipt_text.tpl +++ b/xml/templates/message_templates/event_online_receipt_text.tpl @@ -34,7 +34,7 @@ ==========================================================={if !empty($pricesetFieldsCount)}===================={/if} -{if isset($pay_later_receipt)}{$pay_later_receipt}{/if} +{if {event.pay_later_receipt|boolean}}{event.pay_later_receipt|boolean}{/if} ==========================================================={if !empty($pricesetFieldsCount)}===================={/if} {/if} -- 2.25.1