-
-
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
CRM-20184 Missing email_greeting in Workflow Templates #11674
CRM-20184 Missing email_greeting in Workflow Templates #11674
Conversation
e024f1e
to
062df22
Compare
e867061
to
bda01be
Compare
9d1f0e3
to
23e61dc
Compare
Hi @twomice & @sunilpawar, I saw you have been involved in issues regarding greeting tokens for civicrm in the past, would any one of you like to review my PR to make the system workflow messages consistent in the use of the {contact.email_greeting} token? The PR provides an upgrade script. Thanks! |
Jenkins test this please. |
Thanks @magnolia61 for the PR.
|
This PR looks good to me. I agree with @twomice that the display name should be a separate PR ideally. But as it is already here I would rather review it is as mergeable because it is not a big deal. |
@jaapjansma Would that be as easy as replacing 'Dear Mr. Anthony Anderson II' with 'Dear' in:
|
I am not sure whether that is enough it depends on what the test exactly is testing. Maybe @eileenmcnaughton can help with this? |
@magnolia61 It does seem like replacing 'Dear Mr. Anthony Anderson II', with the greeting value makes sense - although hopefully it's a 'real' value like Dear Anthony not just Dear - might need to ensure that in the test set up |
4758d19
to
eba82d1
Compare
26751f5
to
41497a5
Compare
638b464
to
25d4551
Compare
1ee244a
to
298812e
Compare
Anyone? Is the failing test related? I cant figure out how it would be related |
I dont think it is related. |
No - I think not |
I don't feel like I can review a PR with so many changes - it might need to be broken up - if you want to put a PR for a single template I can take a look at that (that might help find any issues too) |
ehm. I'll try. BTW to upgrade system message templates, are the files in xml/templates/message_templates necessary or are they generated automatically. I included them in this PR. |
@magnolia61 I'm not that sure - perhaps @monishdeb @jitendrapurohit |
@eileenmcnaughton Shall I change this PR temporarily to be only for 1 template, or create a new one? |
@magnolia61 using this PR keeps the comments for us which is nice - start with the template you care most about! |
ad2ec5c
to
d175343
Compare
@eileenmcnaughton I narrowed it down to 3 templates for review, and will add the other templates after initial review. |
d175343
to
10e173e
Compare
I have concerns with this specific change: CRM/Upgrade/5.1.beta1.msg_template/message_templates/contribution_online_receipt_subject.tpl hardcoding the contact name/title into an email subject would be restrictive and would force CiviCRM users/admins to "unhardcode" this in order to achieve the current behaviour. |
I'm closing this in favour of #12296 (which excludes the email subjects change & uses new upgrade logic) |
Overview
The token {contact.email_greeting} was introduced to give site admins control over the type and formality of the greeting. This token was only introduced in a few system workflow templates. This PR adds it to the others. Also it adds the display name to the email subject to be clearer
Before
Even though {contact.email_greeting} was introduced the workflow templates did not work as expected.
After
All (actually all but some) of the templates now have the {contact.email_greeting} for both the html and the text version. Also the display name is added to the subject to clearer discern between mails.
Technical Details
templates were changes in xml/templates/message_templates/ and I added them to the upgrade script.
Comments