Actions
Bug #70916
closedFlexform input range slider validation problem
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2015-10-21
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Description
Hello,
i'm on the latest TYPO3 7 dev-master.
My Flexform:
... <settings.itemsPerPage> <TCEforms> <label>Test</label> <config> <type>input</type> <size>2</size> <default>10</default> <eval>int</eval> <range> <lower>1</lower> <upper>20</upper> </range> <wizards> <slider> <type>slider</type> <step>1</step> </slider> </wizards> </config> </TCEforms> </settings.itemsPerPage> ...
If I choose a value through the slider or Input field the validation results (red marked input field) are:
1-2: no error
3-9: error
10-20: no error
I could solve the problem for my case if I changed the file:
typo3/sysext/backend/Resources/Public/JavaScript/FormEngineValidation.js (Line 290)
var minValue = rule.config.lower || 0; var maxValue = rule.config.upper || Number.MAX_VALUE;
I casted the rule.config.lower and rule.config.upper to Int and the validation works alright.
I guess this would cause errors on other backend inputs but maybe there is a better solution for that.
Thanks.
Actions