Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
TYPO3
sg_mail
Commits
d9e87a7d
Commit
d9e87a7d
authored
Sep 26, 2017
by
Torsten Oppermann
Browse files
[TASK] Fixing bug with default template selection
parent
e6b98e52
Changes
1
Hide whitespace changes
Inline
Side-by-side
Classes/Service/MailTemplateService.php
View file @
d9e87a7d
...
...
@@ -324,6 +324,12 @@ class MailTemplateService {
$this
->
extensionKey
,
$this
->
templateName
,
$this
->
language
,
$siteRootId
);
if
(
$template
===
NULL
)
{
$template
=
$this
->
templateRepository
->
findOneByTemplate
(
$this
->
extensionKey
,
$this
->
templateName
,
'default'
,
$siteRootId
);
}
// if there is a template, prefer those values
if
(
$template
)
{
$this
->
loadTemplateValues
(
$template
);
...
...
@@ -347,7 +353,7 @@ class MailTemplateService {
}
}
}
elseif
(
filter_var
(
$template
->
getToAddress
(),
FILTER_VALIDATE_EMAIL
))
{
$this
->
setToAddresses
(
$template
->
getToAddress
());
$this
->
setToAddresses
(
$template
->
getToAddress
());
}
if
(
$isPreview
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment