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
7365bbcd
Commit
7365bbcd
authored
Feb 08, 2018
by
Carsten Rose
Browse files
Bug #5390 - input validation decimal broken. fixed
parent
c4545f5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
extension/qfq/qfq/AbstractBuildForm.php
View file @
7365bbcd
...
...
@@ -484,7 +484,7 @@ abstract class AbstractBuildForm {
$storeRecord
=
$this
->
store
->
getStore
(
STORE_RECORD
);
$value
=
$this
->
report
->
process
(
$this
->
bodytextParser
->
process
(
$value
),
false
);
$this
->
store
->
setStore
(
$storeRecord
,
STORE_RECORD
,
true
);
$this
->
store
->
setVar
(
SYSTEM_REPORT_FULL_LEVEL
,
''
,
STORE_SYSTEM
);
}
return
$value
;
...
...
@@ -1325,6 +1325,7 @@ abstract class AbstractBuildForm {
$column
=
$formElement
[
FE_NAME
];
$matches
=
array
();
$inputType
=
'number'
;
$typeSpec
=
$this
->
store
->
getVar
(
$column
,
STORE_TABLE_COLUMN_TYPES
);
switch
(
$typeSpec
)
{
...
...
@@ -1389,6 +1390,7 @@ abstract class AbstractBuildForm {
case
'float'
:
case
'double'
:
$checkType
=
SANITIZE_ALLOW_NUMERICAL
;
$inputType
=
'text'
;
break
;
case
'bit'
:
$checkType
=
SANITIZE_ALLOW_DIGIT
;
...
...
@@ -1408,7 +1410,7 @@ abstract class AbstractBuildForm {
$formElement
[
FE_CHECK_TYPE
]
=
$checkType
;
if
(
empty
(
$formElement
[
FE_INPUT_TYPE
]))
{
$formElement
[
FE_INPUT_TYPE
]
=
'number'
;
$formElement
[
FE_INPUT_TYPE
]
=
$inputType
;
}
}
...
...
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