From a85f92450f91ae302b44c5a4fafbbd4d5461dad0 Mon Sep 17 00:00:00 2001 From: Carsten Rose <carsten.rose@math.uzh.ch> Date: Sun, 15 Dec 2019 16:19:54 +0100 Subject: [PATCH] Fix problem saving wrong value after dynamic update. --- extension/Classes/Core/Form/Checkbox.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/extension/Classes/Core/Form/Checkbox.php b/extension/Classes/Core/Form/Checkbox.php index 951d98157..724643ccc 100644 --- a/extension/Classes/Core/Form/Checkbox.php +++ b/extension/Classes/Core/Form/Checkbox.php @@ -249,9 +249,9 @@ class Checkbox { } // ' ' - This is necessary to correctly align an empty input. - $value = ($itemValue[$ii] === '') ? ' ' : $itemValue[$ii]; + $valueShow = ($itemValue[$ii] === '') ? ' ' : $itemValue[$ii]; - $htmlElement = '<input ' . $attribute . '>' . $value; + $htmlElement = '<input ' . $attribute . '>' . $valueShow; $checkboxLabelId = HelperFormElement::getCheckboxRadioOptionId($formElement[FE_HTML_ID], $ii, HTML_ID_EXTENSION_LABEL); $html .= Support::wrapTag("<label class='" . $formElement[FE_BUTTON_CLASS] . "$classActive' id=\"$checkboxLabelId\">", @@ -345,9 +345,9 @@ class Checkbox { } // ' ' - This is necessary to correctly align an empty input. - $value = ($itemValue[$ii] === '') ? ' ' : $itemValue[$ii]; + $valueShow = ($itemValue[$ii] === '') ? ' ' : $itemValue[$ii]; - $htmlElement = '<input ' . $attribute . '>' . $value; + $htmlElement = '<input ' . $attribute . '>' . $valueShow; $checkboxLabelId = HelperFormElement::getCheckboxRadioOptionId($formElement[FE_HTML_ID], $ii, HTML_ID_EXTENSION_LABEL); $htmlElement = Support::wrapTag("<label class=\"$checkboxClass\" $attributeBaseLabel id=\"$checkboxLabelId\">", $htmlElement, true); -- GitLab