Skip to content

Commit 45a7e0c

Browse files
authored
Merge pull request #2869 from magento-tango/MAGETWO-93320
MAGETWO-93320: It's impossible to specify negative value in "Quantity" field for product
2 parents f360cee + 64339ea commit 45a7e0c

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
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
@@ -568,7 +568,7 @@
568568
<settings>
569569
<scopeLabel>[GLOBAL]</scopeLabel>
570570
<validation>
571-
<rule name="validate-digits" xsi:type="boolean">true</rule>
571+
<rule name="validate-integer" xsi:type="boolean">true</rule>
572572
<rule name="validate-number" xsi:type="boolean">true</rule>
573573
</validation>
574574
<label translate="true">Qty Increments</label>

app/code/Magento/CatalogInventory/view/adminhtml/web/js/components/qty-validator-changer.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ define([
2020
var isDigits = value !== 1;
2121

2222
this.validation['validate-integer'] = isDigits;
23-
this.validation['validate-digits'] = isDigits;
2423
this.validation['less-than-equals-to'] = isDigits ? 99999999 : 99999999.9999;
2524
this.validate();
2625
}

0 commit comments

Comments
 (0)