Bug #74294
closedTCA: range upper don't work with all numbers
0%
Description
Mysterious...
If you use the following TCA, you can only enter 1 as valid number in your backend form. Otherwise the Javascript validation fails:
'config' => array( 'type' => 'input', 'size' => 4, 'eval' => 'int', 'range' => array( 'upper' => '2000', 'lower' => '0' ), )
If you use (for example) 86400 instead of 2000, all works fine.
Other "bad" values for upper: 1000, 1001
I couldn't figure out a system which numbers are "good" or "bad" ;)
For easier reconstruction, i attached a little extension to reproduce. Just install it and create a record in your list module.
I use TYPO3 7.6.4
Files
Updated by Gernot Ploiner over 8 years ago
This works at all (without: '):
'config' => array( 'type' => 'input', 'size' => 4, 'eval' => 'int', 'range' => array( 'upper' => 2000, 'lower' => 0 ), )
My TCA is from an old extension, initially generated with kickstarter. So I'm not sure if this is a bug or wrong code-format...
Updated by Wouter Wolters over 8 years ago
- Status changed from New to Needs Feedback
I could not reproduce this in master. This could have been a bug that is solved now in master.
https://review.typo3.org/#/c/48336/ this is a WIP to fix some stuff in validation part.
Can you try out master and see if it works there for you as expected?
For 7.6 we need to wait if the current work improves the situation in this area.
Updated by Riccardo De Contardi about 8 years ago
- Status changed from Needs Feedback to Closed
90+ days without feedback > closing this issue.
If you think that this is the wrong decision or experience the issue again, please open a new issue with a reference to this one .
Thank you
Updated by Gernot Ploiner almost 8 years ago
Sorry for the delay.
Yes, it ist resolved.
Tested in TYO3 7.6.14