Skip to content

Commit 26d11e8

Browse files
committed
[BUGFIX] Read "value" argument on TYPO3v11 and below
Fixes flux:form.option with tag content on older TYPO3 versions.
1 parent b078759 commit 26d11e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Classes/ViewHelpers/Form/OptionViewHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public static function renderStatic(
3939
/** @var string $option */
4040
$option = $arguments['name'] ?? static::$option;
4141
$container = static::getContainerFromRenderingContext($renderingContext);
42-
$value = $renderChildrenClosure();
42+
$value = $arguments['value'] ?? $renderChildrenClosure();
4343
if ($container instanceof OptionCarryingInterface) {
4444
$container->setOption($option, $value);
4545
return '';

0 commit comments

Comments
 (0)