Project

General

Profile

Actions

Bug #74294

closed

TCA: range upper don't work with all numbers

Added by Gernot Ploiner over 8 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2016-03-05
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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

mytcatest_0.0.0_201603050823.zip (9.82 KB) mytcatest_0.0.0_201603050823.zip Gernot Ploiner, 2016-03-05 08:26
Actions

Also available in: Atom PDF