-
-
Notifications
You must be signed in to change notification settings - Fork 824
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
Use email_greeting where possible in receipts #12296
Conversation
(Standard links)
|
test this please |
@@ -1,4 +1,4 @@ | |||
{if $contact.email_greeting}{$contact.email_greeting},{/if} | |||
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/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.
I'm confused about what's going on here. Why assign a variable?
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.
to avoid a comma if there is none
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.
The old code appears to already be doing that. Am I missing something?
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.
@colemanw I only just added the old code on this template (as part of getting the message update functionality merged - I used it as an example). When I tested as part of this it didn't work
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.
@colemanw note change from {if $contact.email_greeting} to {contact.email_greeting} - it's not a smarty token
|
@JoeMurray to be honest I just changed the things from #11674 so I could resolve that pr - I don't grow it further but the submitter can if they want I agree re messages but this has grown more than enough for this round of trying to deal with pr above |
@colemanw would be good to get this merged for the rc |
Change makes sense to me and i believe these are all good improvements |
Thanks @seamuslee001 (ping @magnolia61 - will be in 5.4) |
cross-referencing here: it looks like this addresses (maybe completes?) CRM-20184 |
I think so - I'll close CRM-20184 - if there are missed places it can go in a follow up |
Overview
Adds the use of the email_greeting to the default message templates - e.g for individuals a line like
Dear Mickey,
would be added. For organisations it is not added. Customised templates unchanged.
Before
No greeting
After
greeting
Technical Details
This is a recut of #11674
Comments