Commit a85f9245 authored by Carsten  Rose's avatar Carsten Rose
Browse files

Fix problem saving wrong value after dynamic update.

parent 6557e683
Pipeline #2971 failed with stages
in 1 minute and 50 seconds
......@@ -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 {
}
// '&nbsp;' - This is necessary to correctly align an empty input.
$value = ($itemValue[$ii] === '') ? '&nbsp;' : $itemValue[$ii];
$valueShow = ($itemValue[$ii] === '') ? '&nbsp;' : $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);
......
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