Project

General

Profile

Actions

Bug #72047

closed

Using NumberRangeValidator with startRange/endRange does not work

Added by Stephan Großberndt almost 9 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Must have
Category:
Extbase
Start date:
2015-12-03
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
easy
Is Regression:
Yes
Sprint Focus:

Description

#58313 introduced a regression.

If you use

      * @validate NumberRange (startRange = 0, endRange = 2)

this will never be checked, but the default values from $this->supportedOptions of minimum/maximum will be used

    protected $supportedOptions = array(
        'minimum' => array(0, 'The minimum value to accept', 'integer'),
        'maximum' => array(PHP_INT_MAX, 'The maximum value to accept', 'integer'),
        'startRange' => array(0, 'The minimum value to accept', 'integer'),
        'endRange' => array(PHP_INT_MAX, 'The maximum value to accept', 'integer')
    );

Related issues 2 (1 open1 closed)

Follows TYPO3 Core - Bug #58313: NumberRangeValidator - old startRange/endRange don't work anymore in 6.2 (are only deprecated for 6.3)Closed2014-04-29

Actions
Precedes TYPO3 Core - Bug #72136: Make Validator Unit Tests behave like they are used from Domain ModelNew2015-12-09

Actions
Actions

Also available in: Atom PDF