Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sg_mail
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TYPO3
sg_mail
Merge requests
!49
[BUGFIX] fix behaviour when choosing 'no layout'
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
[BUGFIX] fix behaviour when choosing 'no layout'
bugfix_4178-no-layout
into
master
Overview
0
Commits
2
Changes
4
Merged
Kevin von Spiczak
requested to merge
bugfix_4178-no-layout
into
master
2 years ago
Overview
0
Commits
2
Changes
4
Expand
0
0
Merge request reports
Compare
master
version 1
517514c7
2 years ago
master (base)
and
latest version
latest version
b8678a23
2 commits,
2 years ago
version 1
517514c7
1 commit,
2 years ago
4 files
+
26
−
9
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
Classes/Controller/MailController.php
+
3
−
2
Options
@@ -25,6 +25,7 @@
namespace
SGalinski\SgMail\Controller
;
use
SGalinski\SgMail\Domain\Model\Layout
;
use
SGalinski\SgMail\Domain\Model\Template
;
use
SGalinski\SgMail\Domain\Repository\LayoutRepository
;
use
SGalinski\SgMail\Domain\Repository\TemplateRepository
;
@@ -182,8 +183,8 @@ class MailController extends AbstractController {
$layouts
=
$this
->
layoutRepository
->
findByPidForModule
(
$this
->
site
->
getRootPageId
());
$layoutOptions
=
[
0
=>
LocalizationUtility
::
translate
(
'backend.layout.default'
,
'SgMail'
),
-
1
=>
LocalizationUtility
::
translate
(
'backend.layout.none'
,
'SgMail'
)
Layout
::
DEFAULT_LAYOUT
=>
LocalizationUtility
::
translate
(
'backend.layout.default'
,
'SgMail'
),
Layout
::
NO_LAYOUT
=>
LocalizationUtility
::
translate
(
'backend.layout.none'
,
'SgMail'
)
];
foreach
(
$layouts
as
$layout
)
{
$layoutOptions
[(
int
)
$layout
[
'uid'
]]
=
$layout
[
'name'
];
Loading