[FOLLOWUP][BUGFIX] Treat numbers for comparison in FormEngineValidation as integer 25/47425/2
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Wed, 30 Mar 2016 13:24:19 +0000 (15:24 +0200)
committerAndreas Fernandez <typo3@scripting-base.de>
Wed, 30 Mar 2016 13:58:06 +0000 (15:58 +0200)
Resolves: #75307
Releases: master
Change-Id: If2d2d9a25549bbcd5afc70ad50b14ca358336680
Reviewed-on: https://review.typo3.org/47425
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

index b7ac362..ba6ba33 100644 (file)
@@ -287,7 +287,7 @@ define(['jquery', 'TYPO3/CMS/Backend/FormEngine'], function ($, FormEngine) {
                                                }
                                                if (typeof rule.config.upper !== 'undefined') {
                                                        var maxValue = rule.config.upper * 1;
-                                                       if (!isNaN(maxValue) && value < minValue) {
+                                                       if (!isNaN(maxValue) && value > maxValue) {
                                                                markParent = true;
                                                        }
                                                }