Commit 0800ba7c 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

Tested-by: core-ci's avatarcore-ci <>
Tested-by: default avatarJan Helke <>
Tested-by: Christian Kuhn's avatarChristian Kuhn <>
Reviewed-by: default avatarJan Helke <>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <>
parent 7b8fa897
......@@ -119,8 +119,8 @@ class RenderFormValueViewHelper extends AbstractViewHelper
) {
$properties = $element->getProperties();
$options = $properties['options'] ?? null;
if ($options !== null && is_array($options)) {
$properties['options'] = TranslateElementPropertyViewHelper::renderStatic(
if (is_array($options)) {
$options = (array)TranslateElementPropertyViewHelper::renderStatic(
['element' => $element, 'property' => 'options'],
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