Skip to content

Commit 2535b73

Browse files
author
Stanislav Idolov
authored
ENGCOM-1639: [Backport] Fix to allow use decimals less then 1 in subproducts qty #15407
2 parents 3085bda + 657c732 commit 2535b73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/web/mage/validation/validation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
var val = $(e).val();
2626
if (val && val.length > 0) {
2727
result = true;
28-
var valInt = parseInt(val, 10) || 0;
28+
var valInt = parseFloat(val) || 0;
2929
if (valInt >= 0) {
3030
total += valInt;
3131
} else {

0 commit comments

Comments
 (0)