Skip to content

Commit a90b46c

Browse files
committed
MC-42249: No form validation for negative quantity on bundle products
- Fixed the Jasmine Test.
1 parent d869864 commit a90b46c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/Bundle/view/base/web/js/price-bundle.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ define([
133133
.options[field.data('optionId')]
134134
.selections[field.data('optionValueId')];
135135
optionConfig.qty = field.val();
136+
136137
if (checkIsValidateQty(optionInstance)) {
137138
optionInstance.trigger('change');
138139
}
@@ -383,7 +384,7 @@ define([
383384
*/
384385
function checkIsValidateQty(bundleOption)
385386
{
386-
let isValid = 0,
387+
var isValid = 0,
387388
qtyElem = bundleOption.data('qtyField');
388389
if (bundleOption.prop('type') === 'radio' || bundleOption.prop('type') === 'select-one') {
389390
if (qtyElem.val() >= qtyElem.data('validate')['validate-item-quantity'].minAllowed

0 commit comments

Comments
 (0)