Skip to content

Commit b48f07c

Browse files
committed
MAGETWO-87496: Switch updatecart qty input validators to dynamic instead of hardcoding #13462
- Merge Pull Request #13462 from gil--/magento2:feature/dynamic-validation-updateform - Merged commits: 1. 1ad527a
2 parents c7acfe2 + 1ad527a commit b48f07c

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)