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

Merge branch 'B15521_form_editor_assigns_always_container' into 'develop'

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

See merge request !540
parents 3570ba6a f4699d42
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 #8974 passed
......@@ -411,7 +411,7 @@ class Evaluate {
$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;
$value = str_replace('\\:', ':', $arrToken[VAR_INDEX_DEFAULT]);
}
......
......@@ -331,7 +331,7 @@ class FillStoreForm {
// 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 == '') {
$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