From 1ad527a3ecc1fe303dc7703d309d4dde60ad6356 Mon Sep 17 00:00:00 2001 From: Gil Greenberg Date: Thu, 1 Feb 2018 17:18:33 -0500 Subject: [PATCH] Switch updatecart qty input validators to dynamic instead of hardcoding --- .../frontend/templates/cart/item/configure/updatecart.phtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/Magento/Checkout/view/frontend/templates/cart/item/configure/updatecart.phtml b/app/code/Magento/Checkout/view/frontend/templates/cart/item/configure/updatecart.phtml index b41d548e95b99..c1db2f7775ca8 100644 --- a/app/code/Magento/Checkout/view/frontend/templates/cart/item/configure/updatecart.phtml +++ b/app/code/Magento/Checkout/view/frontend/templates/cart/item/configure/updatecart.phtml @@ -23,7 +23,7 @@ value="" title="" class="input-text qty" - data-validate="{'required-number':true,digits:true}"/> + data-validate="escapeHtml(json_encode($block->getQuantityValidators())) ?>"/>