Skip to content

Commit db4ac89

Browse files
committed
Added validation on maximum quantity allowed in shopping cart
1 parent 0f57a30 commit db4ac89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/CatalogInventory/view/adminhtml/ui_component/product_form.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@
285285
<settings>
286286
<scopeLabel>[GLOBAL]</scopeLabel>
287287
<validation>
288-
<rule name="validate-number" xsi:type="boolean">true</rule>
288+
<rule name="validate-greater-than-zero" xsi:type="boolean">true</rule>
289289
</validation>
290290
<label translate="true">Maximum Qty Allowed in Shopping Cart</label>
291291
<dataScope>max_sale_qty</dataScope>

0 commit comments

Comments
 (0)