[BUGFIX] Treat numbers for comparison in FormEngineValidation as integer 24/47424/3
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:27:57 +0000 (15:27 +0200)
commitc6d12307dc1de297e373126c181e013216774e6a
treec79ade39bb0935532bfe09283f2f8fa8e5e0d5af
parent71db2aa162eecb07e94a8b25f165c06b5bbedc72
[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/47424
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/backend/Resources/Public/JavaScript/FormEngineValidation.js