Skip to content

Commit d718dc0

Browse files
committed
Resolve No validation "Minimum Qty" on "Minimum Qty Allowed in Shopping Cart" field => Wrong Saving issue23895
1 parent fb3fb8e commit d718dc0

File tree

1 file changed

+6
-1
lines changed
  • app/code/Magento/CatalogInventory/Block/Adminhtml/Form/Field

1 file changed

+6
-1
lines changed

app/code/Magento/CatalogInventory/Block/Adminhtml/Form/Field/Minsaleqty.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,12 @@ protected function _prepareToRender()
5151
'customer_group_id',
5252
['label' => __('Customer Group'), 'renderer' => $this->_getGroupRenderer()]
5353
);
54-
$this->addColumn('min_sale_qty', ['label' => __('Minimum Qty')]);
54+
$this->addColumn('min_sale_qty',
55+
[
56+
'label' => __('Minimum Qty'),
57+
'class' => 'required-entry validate-number validate-greater-than-zero'
58+
]
59+
);
5560
$this->_addAfter = false;
5661
$this->_addButtonLabel = __('Add Minimum Qty');
5762
}

0 commit comments

Comments
 (0)