-
-
Notifications
You must be signed in to change notification settings - Fork 825
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix event templates to use end_date token #27005
Conversation
Thank you for contributing to CiviCRM! ❤️ We will need to test and review the PR. 👷 Introduction for new contributors
Quick links for reviewers |
@@ -38,7 +38,7 @@ | |||
==========================================================={if !empty($pricesetFieldsCount) }===================={/if} | |||
|
|||
{event.title} | |||
{event.start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:"%Y%m%d" == $event.event_start_date|crmDate:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if} | |||
{event.start_date|crmDate}{if {event.end_date|boolean}}-{if '{event.end_date|crmDate:"%Y%m%d"}' === '{event.start_date|crmDate:"%Y%m%d"}'}{event.end_date|crmDate:"Time"}{else}{event_end_date}{/if}{/if} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At the end of this line: {event_end_date}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @demeritcowboy
Re-assuring jenkins also spotted it - CRM_Event_Form_ParticipantTest::testSubmitWithDeferredRecognition
Exception: CRM_Core_Exception: "Message was not parsed due to invalid smarty syntax : Smarty error: [in evaluated template line 41]: syntax error: unrecognized tag 'event_end_date' (Smarty_Compiler.class.php, line 584)"
#0 internal function: CRM_Core_Smarty->handleSmartyError(256, "Smar
35c7022
to
32d1feb
Compare
FYI merge conflict |
32d1feb
to
04abbd4
Compare
Thanks @demeritcowboy - rebased |
04abbd4
to
3f794c8
Compare
test this please |
@demeritcowboy this is passing now... |
There's a bunch of errors but will post separately. |
Overview
Fix event templates to use end_date token
Before
Uses
$event.event_end_date
After
Uses
{event.end_date}
- note the conditional means only time shows when applicableTechnical Details
Comments