Skip to content
Snippets Groups Projects
Commit 7ceaaa8b authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

[BUGFIX] Fixing an issue with the selection of templates that broke the complete logic

parent c77ca08f
No related branches found
No related tags found
No related merge requests found
......@@ -94,6 +94,11 @@ class ActionMenuItemViewHelper extends AbstractTagBasedViewHelper {
} else {
$this->tag->removeAttribute('selected');
}
if (!$arguments['parameters']['selected']) {
$this->tag->removeAttribute('selected');
}
$this->tag->setContent($label);
return $this->tag->render();
}
......
......@@ -32,6 +32,7 @@
arguments="{
controller: '{f:if(condition:\'{mode}==queue\', then:\'Queue\',else:\'Mail\')}',
action: 'index',
selected: '{f:if(condition:\'{selectedTemplateKey}=={templateKey}\', then:\'selected\',else:\'\')}',
selectedTemplateKey: templateKey,
selectedExtensionKey: extensionKey,
label: '{f:if(condition: \'{currentTemplate.isManual}\', then:\'*\')}{currentTemplate.templateName}'}" />
......
......@@ -80,7 +80,7 @@
<mail:be.menus.actionMenuItem
controller="{controller}"
action="{action}"
arguments="{parameters: {selectedTemplate: selectedTemplateKey, selectedExtension: selectedExtensionKey}}"
arguments="{parameters: {selectedTemplate: selectedTemplateKey, selectedExtension: selectedExtensionKey, selected: selected}}"
label="{label}" />
</f:section>
</html>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment