[BUGFIX] Treat numbers for comparison in FormEngineValidation as integer 18/47418/4
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Wed, 30 Mar 2016 09:15:44 +0000 (11:15 +0200)
committerAndreas Fernandez <typo3@scripting-base.de>
Wed, 30 Mar 2016 13:17:27 +0000 (15:17 +0200)
commitc7c202fef7c0cdfed24095b2e812504c5327240d
tree578d67efc39280bcd16791c0b4ea58dea3b2954f
parent645423477dd278a29cc9bf68887f9c9340f02111
[BUGFIX] Treat numbers for comparison in FormEngineValidation as integer

This patch fixes the issue that the number-based rules are treated
as strings. The numbers are converted to integers now.

Also, the ``range`` is changed: Instead of defining any fallback
values if either ``lower`` or ``upper`` are not set, the value is now
only compared against those limits when they exist.

Resolves: #75307
Releases: master, 7.6
Change-Id: Iab321a7637e2ccc8c662355ccef1e25bc0b78be7
Reviewed-on: https://review.typo3.org/47418
Reviewed-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
Tested-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
Reviewed-by: Susanne Moog <typo3@susannemoog.de>
Tested-by: Susanne Moog <typo3@susannemoog.de>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/backend/Resources/Public/JavaScript/FormEngineValidation.js