Skip to content

Commit 8171225

Browse files
author
Oleksii Korshenko
authored
MAGETWO-87496: Switch updatecart qty input validators to dynamic instead of hardcoding #13462
2 parents 63c8a2a + b48f07c commit 8171225

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Checkout/view/frontend/templates/cart/item/configure

1 file changed

+1
-1
lines changed

app/code/Magento/Checkout/view/frontend/templates/cart/item/configure/updatecart.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
value=""
2424
title="<?= /* @escapeNotVerified */ __('Qty') ?>"
2525
class="input-text qty"
26-
data-validate="{'required-number':true,digits:true}"/>
26+
data-validate="<?= $block->escapeHtml(json_encode($block->getQuantityValidators())) ?>"/>
2727
</div>
2828
</div>
2929
<?php endif; ?>

0 commit comments

Comments
 (0)