Skip to content

Commit d866790

Browse files
committed
Added validation on maximum quantity allowed in shopping cart
1 parent 80469a6 commit d866790

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
@@ -288,7 +288,7 @@
288288
<settings>
289289
<scopeLabel>[GLOBAL]</scopeLabel>
290290
<validation>
291-
<rule name="validate-number" xsi:type="boolean">true</rule>
291+
<rule name="validate-greater-than-zero" xsi:type="boolean">true</rule>
292292
</validation>
293293
<label translate="true">Maximum Qty Allowed in Shopping Cart</label>
294294
<dataScope>max_sale_qty</dataScope>

0 commit comments

Comments
 (0)