Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
fe00ae9b
Commit
fe00ae9b
authored
Jan 26, 2019
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
extension/Source/core/helper/Support.php
View file @
fe00ae9b
...
@@ -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].
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment