From d408f701d57c2aa47252cfe5b2d726b26c201e36 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Sat, 19 Jun 2021 09:58:38 +1200 Subject: [PATCH] Minor tpl simplificaiton, notice reduction This registerMode stuff turns out to be just a long winded way of upper casing the variable --- templates/CRM/Event/Form/Participant.tpl | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/templates/CRM/Event/Form/Participant.tpl b/templates/CRM/Event/Form/Participant.tpl index da6a15c9cc..c2a8aa08ef 100644 --- a/templates/CRM/Event/Form/Participant.tpl +++ b/templates/CRM/Event/Form/Participant.tpl @@ -162,11 +162,6 @@ {* Main event form template *} {else} - {if $participantMode == 'test' } - {assign var=registerMode value="TEST"} - {elseif $participantMode == 'live'} - {assign var=registerMode value="LIVE"} - {/if}
{if $newCredit AND $action EQ 1 AND $participantMode EQ null} {/if}
- {if $participantMode} + {if !empty($participantMode)}
- {ts 1=$displayName 2=$registerMode}Use this form to submit an event registration on behalf of %1. A %2 transaction will be submitted using the selected payment processor.{/ts} + {ts 1=$displayName 2=$participantMode|upper}Use this form to submit an event registration on behalf of %1. A %2 transaction will be submitted using the selected payment processor.{/ts}
{/if} -- 2.25.1