Skip to content
Snippets Groups Projects
Commit a85f9245 authored by Carsten  Rose's avatar Carsten Rose
Browse files

Fix problem saving wrong value after dynamic update.

parent 6557e683
No related branches found
No related tags found
1 merge request!221B9720 checkbox various setups
Pipeline #2971 failed
...@@ -249,9 +249,9 @@ class Checkbox { ...@@ -249,9 +249,9 @@ class Checkbox {
} }
// ' ' - This is necessary to correctly align an empty input. // ' ' - 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); $checkboxLabelId = HelperFormElement::getCheckboxRadioOptionId($formElement[FE_HTML_ID], $ii, HTML_ID_EXTENSION_LABEL);
$html .= Support::wrapTag("<label class='" . $formElement[FE_BUTTON_CLASS] . "$classActive' id=\"$checkboxLabelId\">", $html .= Support::wrapTag("<label class='" . $formElement[FE_BUTTON_CLASS] . "$classActive' id=\"$checkboxLabelId\">",
...@@ -345,9 +345,9 @@ class Checkbox { ...@@ -345,9 +345,9 @@ class Checkbox {
} }
// '&nbsp;' - This is necessary to correctly align an empty input. // '&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); $checkboxLabelId = HelperFormElement::getCheckboxRadioOptionId($formElement[FE_HTML_ID], $ii, HTML_ID_EXTENSION_LABEL);
$htmlElement = Support::wrapTag("<label class=\"$checkboxClass\" $attributeBaseLabel id=\"$checkboxLabelId\">", $htmlElement, true); $htmlElement = Support::wrapTag("<label class=\"$checkboxClass\" $attributeBaseLabel id=\"$checkboxLabelId\">", $htmlElement, true);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment