Skip to content
Snippets Groups Projects
Commit 17ab8082 authored by Susanne Moog's avatar Susanne Moog Committed by Daniel Goerz
Browse files

[BUGFIX] Allow all child nodes in ActionMenuItemGroupViewHelper

While it was with good intentions, restricting the allowed child nodes
of the view helper restricts developers / integrators too much in their
usage as valid cases of using loops or conditions do not work anymore.
These restrictions have been removed.

Resolves: #87179
Releases: master, 9.5
Change-Id: I36c87a69902eb84bbe551f79d959f1869673e459
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63927


Reviewed-by: default avatarFrank Nägler <frank.naegler@typo3.org>
Reviewed-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: default avatarDaniel Goerz <daniel.goerz@posteo.de>
Tested-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarDaniel Goerz <daniel.goerz@posteo.de>
parent 29651b1d
Branches
Tags
No related merge requests found
......@@ -65,7 +65,7 @@ class ActionMenuItemGroupViewHelper extends ActionMenuViewHelper
$this->tag->addAttribute('label', $label);
$options = '';
foreach ($this->childNodes as $childNode) {
if ($childNode instanceof ViewHelperNode && $childNode->getViewHelperClassName() === ActionMenuItemViewHelper::class) {
if ($childNode instanceof ViewHelperNode) {
$options .= $childNode->evaluate($this->renderingContext);
}
}
......
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