Skip to content

Commit 18248e1

Browse files
ENGCOM-1368: [Forwardport] Fix to allow use decimals less then 1 in subproducts qty. #14814
- Merge Pull Request #14814 from ihor-sviziev/magento2:2.3-develop-PR-port-14752 - Merged commits: 1. c3a1415
2 parents 58dd8e2 + c3a1415 commit 18248e1

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
@@ -30,7 +30,7 @@
3030

3131
if (val && val.length > 0) {
3232
result = true;
33-
valInt = parseInt(val, 10) || 0;
33+
valInt = parseFloat(val) || 0;
3434

3535
if (valInt >= 0) {
3636
total += valInt;

0 commit comments

Comments
 (0)