Commit 79fede81 authored by Kevin Ditscheid's avatar Kevin Ditscheid
Browse files

[BUGFIX] Fix newsletter layout

parent 4828bbdd
......@@ -283,7 +283,8 @@ class NewsletterController extends AbstractController {
'beUserMail' => (!empty($arguments['emailAddress'])?$arguments['emailAddress']:$GLOBALS['BE_USER']->user['email']),
'defaultLanguageLabel' => $defaultLanguageLabel,
'selectedLanguage' => $parameters['selectedLanguage'],
'selectedGroupsTree'=> $selectedGroupsTree
'selectedGroupsTree'=> $selectedGroupsTree,
'languages' => $this->site->getAllLanguages()
]);
}
......
......@@ -56,7 +56,7 @@
</div>
<div class="language-selector">
<f:be.menus.actionMenu>
<f:for each="{languageLabels}" as="languageLabel" key="languageKey">
<f:for each="{languages}" as="language">
<f:comment><!--
Do not use f:be.menus.actionMenuItemGroup here,
because it does not work with f:for as child!
......@@ -67,11 +67,11 @@
arguments="{
controller: 'Newsletter',
action: 'index',
selected: '{f:if(condition:\'{selectedLanguage}=={languageKey}\', then:\'1\',else:\'0\')}',
selected: '{f:if(condition:\'{selectedLanguage}=={language.languageId}\', then:\'1\',else:\'0\')}',
selectedTemplateKey: selectedTemplateKey,
selectedExtensionKey: selectedExtensionKey,
selectedLanguage: languageKey,
label: '{f:if(condition:\'{languageKey}==default\', then:\'{defaultLanguageLabel}\',else:\'{languageLabel}\')}'
selectedLanguage: language.languageId,
label: language.title
}" />
</f:for>
</f:be.menus.actionMenu>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment