From 9245ab901bf88d7af01727b6f7b59bf80f0a142e Mon Sep 17 00:00:00 2001 From: Sebastian Listl <s.listl@adito.de> Date: Tue, 8 Dec 2020 08:46:27 +0100 Subject: [PATCH] #1069604 NumberUtils.validateIsBetweenFloat correction --- process/Util_lib/process.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/process/Util_lib/process.js b/process/Util_lib/process.js index ca3962c923..00ddb82a71 100644 --- a/process/Util_lib/process.js +++ b/process/Util_lib/process.js @@ -716,7 +716,7 @@ NumberUtils.validateIsBetweenFloat = function(pTitle, pValue, pMin, pMax, pIgnor if(isNaN(discount)) return false; - if (!NumberUtils.isInside(discount, 0, 100, pIgnoreNull)) + if (!NumberUtils.isInside(discount, pMin, pMax, pIgnoreNull)) { return (translate.withArguments("${MIN_MAX_ERROR} field: %0, value: %1, min: %2, max: %3", [translate.text(pTitle), discount, pMin, pMax])); } -- GitLab