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
052455c6
Commit
052455c6
authored
Mar 19, 2020
by
Fabian Galinski
😾
Browse files
[BUGFIX] The layout source is returning null, but must be of type Layout
parent
2c18c073
Changes
1
Hide whitespace changes
Inline
Side-by-side
Classes/Service/MailTemplateService.php
View file @
052455c6
...
...
@@ -1028,9 +1028,9 @@ class MailTemplateService {
*
* @param int $layoutUid
* @param int $siteRootId
* @return Layout
* @return Layout
|NULL
*/
private
function
getLayoutSource
(
int
$layoutUid
,
int
$siteRootId
):
Layout
{
private
function
getLayoutSource
(
int
$layoutUid
,
int
$siteRootId
):
?
Layout
{
$languageUid
=
0
;
if
(
$this
->
language
!==
self
::
DEFAULT_LANGUAGE
)
{
$languageUid
=
(
int
)
array_search
(
$this
->
language
,
$this
->
getAvailableLanguages
(),
TRUE
);
...
...
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