forked from civicrm/civicrm-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix notice in participant_cancelled email
- Loading branch information
1 parent
07aaff1
commit 8c1d624
Showing
5 changed files
with
72 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,9 +30,10 @@ public function testForm(): void { | |
$mut->checkAllMailLog([ | ||
'Your Event Registration has been cancelled', | ||
'Annual CiviCRM meet', | ||
'Registration Date: February 19th, 2007', | ||
'Registration Date', | ||
'February 19th, 2007', | ||
'Please contact us at 123 or send email to [email protected]', | ||
'October 21st, 2008 12:00 AM-October 23rd, 2008 12:00 AM', | ||
'Tuesday October 21st, 2008 12:00 AM-Thursday October 23rd, 2008 12:00 AM', | ||
]); | ||
$emails = $mut->getAllMessages(); | ||
$this->assertStringContainsString('', $emails[0]); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
xml/templates/message_templates/participant_cancelled_subject.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{ts 1=$event.event_title}Event Registration Cancelled for %1{/ts} - {contact.display_name} | ||
{ts 1="{event.title}"}Event Registration Cancelled for %1{/ts} - {contact.display_name} |
47 changes: 0 additions & 47 deletions
47
xml/templates/message_templates/participant_cancelled_text.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +0,0 @@ | ||
{assign var="greeting" value="{contact.email_greeting_display}"}{if $greeting}{$greeting},{/if} | ||
|
||
{ts}Your Event Registration has been cancelled.{/ts} | ||
|
||
|
||
=========================================================== | ||
{ts}Event Information and Location{/ts} | ||
|
||
=========================================================== | ||
{$event.event_title} | ||
{$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:"shortdate" == $event.event_start_date|crmDate:"shortdate"}{$event.event_end_date|crmDate:"Time"}{else}{$event.event_end_date|crmDate}{/if}{/if} | ||
|
||
{ts}Participant Role{/ts}: {participant.role_id:label} | ||
|
||
{if $isShowLocation} | ||
{$event.location.address.1.display|strip_tags:false} | ||
{/if}{*End of isShowLocation condition*} | ||
|
||
{if !empty($event.location.phone.1.phone) || !empty($event.location.email.1.email)} | ||
|
||
{ts}Event Contacts:{/ts} | ||
{foreach from=$event.location.phone item=phone} | ||
{if $phone.phone} | ||
|
||
{if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}: {$phone.phone}{/if} | ||
{/foreach} | ||
{foreach from=$event.location.email item=eventEmail} | ||
{if $eventEmail.email} | ||
|
||
{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach} | ||
{/if} | ||
|
||
{if '{contact.email}'} | ||
|
||
=========================================================== | ||
{ts}Registered Email{/ts} | ||
|
||
=========================================================== | ||
{contact.email} | ||
{/if} | ||
|
||
{if !empty('{participant.register_date}')} | ||
{ts}Registration Date{/ts}: {participant.register_date} | ||
{/if} | ||
|
||
{ts 1='{domain.phone}' 2='{domain.email}'}Please contact us at %1 or send email to %2 if you have questions.{/ts} | ||
|
||