Commit f91b748c authored by Jan Helke's avatar Jan Helke Committed by Christian Kuhn
Browse files

[BUGFIX] Rename variable for storing the translated options

Ensure that in a foreign language context the selected option will
be translated in the finishers. Regression fix introduced with #93979.

Resolves: #96455
Related: #93979
Releases: main, 11.5
Change-Id: Ie6b33f70d6d9a19232821bda77e37b6f290ea061
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/72855


Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Marc Willmann's avatarMarc Willmann <mw@f7.de>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Marc Willmann's avatarMarc Willmann <mw@f7.de>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 8b5bc3e9
......@@ -109,7 +109,7 @@ final class RenderFormValueViewHelper extends AbstractViewHelper
$properties = $element->getProperties();
$options = $properties['options'] ?? null;
if (is_array($options)) {
$properties['options'] = TranslateElementPropertyViewHelper::renderStatic(
$options = (array)TranslateElementPropertyViewHelper::renderStatic(
['element' => $element, 'property' => 'options'],
$renderChildrenClosure,
$renderingContext
......
Supports Markdown
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