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

Bug. Fixes #7743 - Explicit given '0' for MIN or MAX had been interpreted as 'not set'. Fixed.

parent b8f56ddc
Pipeline #1411 passed with stage
in 2 minutes and 9 seconds
...@@ -965,8 +965,16 @@ class Support { ...@@ -965,8 +965,16 @@ class Support {
$formElement[FE_CHECK_TYPE] = $checkType; $formElement[FE_CHECK_TYPE] = $checkType;
} }
if (empty($formElement[FE_MIN])) $formElement[FE_MIN] = $min; // If nothing given, set default
if (empty($formElement[FE_MAX])) $formElement[FE_MAX] = $max; if ( ($formElement[FE_MIN]??'')=='' ){
$formElement[FE_MIN] = $min;
}
// If nothing given, set default
if ( ($formElement[FE_MAX]??'')==''){
$formElement[FE_MAX] = $max;
}
if (empty($formElement[FE_INPUT_TYPE])) $formElement[FE_INPUT_TYPE] = $inputType; if (empty($formElement[FE_INPUT_TYPE])) $formElement[FE_INPUT_TYPE] = $inputType;
// If a $formElement[FE_STEP] is given, the optional boundaries (FE_MIN / FE_MAX) have to be aligned to a multiple of $formElement[FE_STEP]. // If a $formElement[FE_STEP] is given, the optional boundaries (FE_MIN / FE_MAX) have to be aligned to a multiple of $formElement[FE_STEP].
......
Supports Markdown
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