Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CiviCRM Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
CiviCRM Core
Commits
07973ecd
Unverified
Commit
07973ecd
authored
3 years ago
by
Eileen McNaughton
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #21443 from demeritcowboy/test-fix-2
Alternate to
https://github.com/civicrm/civicrm-core/pull/21442
parents
d0d0202f
97b745fe
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CRM/Core/BAO/MessageTemplate.php
+2
-1
2 additions, 1 deletion
CRM/Core/BAO/MessageTemplate.php
with
2 additions
and
1 deletion
CRM/Core/BAO/MessageTemplate.php
+
2
−
1
View file @
07973ecd
...
...
@@ -375,7 +375,8 @@ class CRM_Core_BAO_MessageTemplate extends CRM_Core_DAO_MessageTemplate {
// when we likely have the contact id. OTOH people probably barely
// use preferredMailFormat these days - the good fight against html
// emails was lost a decade ago...
$preferredMailFormat
=
Email
::
get
(
FALSE
)
->
addWhere
(
'email'
,
'='
,
$params
[
'toEmail'
])
->
addSelect
(
'contact_id.preferred_mail_format'
)
->
execute
()
->
first
()[
'contact_id.preferred_mail_format'
];
$preferredMailFormatArray
=
Email
::
get
(
FALSE
)
->
addWhere
(
'email'
,
'='
,
$params
[
'toEmail'
])
->
addSelect
(
'contact_id.preferred_mail_format'
)
->
execute
()
->
first
();
$preferredMailFormat
=
$preferredMailFormatArray
[
'contact_id.preferred_mail_format'
]
??
'Both'
;
if
(
$preferredMailFormat
===
'HTML'
)
{
$params
[
'text'
]
=
NULL
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment