Skip to content
Snippets Groups Projects
Commit f4699d42 authored by enured's avatar enured
Browse files

B15521: Changed equal operator for identical check. This way string needs to...

B15521: Changed equal operator for identical check. This way string needs to be empty and default given to trigger it. It corrects loading behaviour for select, radio and checkboxes.   refs #15521
parent bc6e39cd
No related branches found
No related tags found
2 merge requests!558Version 23.3.0,!540B15521: Changed equal operator for identical check. This way string needs to...
Pipeline #8911 passed
...@@ -411,7 +411,7 @@ class Evaluate { ...@@ -411,7 +411,7 @@ class Evaluate {
$value = OnString::escape($escapeTypes, $value, $rcFlagWipe); $value = OnString::escape($escapeTypes, $value, $rcFlagWipe);
if (($foundInStore == '' || $value == '') && $arrToken[VAR_INDEX_DEFAULT] != '') { if (($foundInStore == '' || $value === '') && $arrToken[VAR_INDEX_DEFAULT] != '') {
$foundInStore = TOKEN_FOUND_AS_DEFAULT; $foundInStore = TOKEN_FOUND_AS_DEFAULT;
$value = str_replace('\\:', ':', $arrToken[VAR_INDEX_DEFAULT]); $value = str_replace('\\:', ':', $arrToken[VAR_INDEX_DEFAULT]);
} }
......
...@@ -331,7 +331,7 @@ class FillStoreForm { ...@@ -331,7 +331,7 @@ class FillStoreForm {
// empty select, radio and checkbox elements used to be 0 for correct handling // empty select, radio and checkbox elements used to be 0 for correct handling
if(($formElement[FE_TYPE] === FE_TYPE_SELECT || $formElement[FE_TYPE] === FE_TYPE_RADIO || $formElement[FE_TYPE] === FE_TYPE_CHECKBOX) && $val == '') { if(($formElement[FE_TYPE] === FE_TYPE_SELECT || $formElement[FE_TYPE] === FE_TYPE_RADIO || $formElement[FE_TYPE] === FE_TYPE_CHECKBOX) && $val == '') {
$newValues[$formElement[FE_NAME]] = '0'; $newValues[$formElement[FE_NAME]] = 0;
} }
} }
} }
......
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