File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
app/code/Magento/CatalogInventory/Block/Adminhtml/Form/Field Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 3
3
* Copyright © Magento, Inc. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
+ declare (strict_types=1 );
7
+
6
8
namespace Magento \CatalogInventory \Block \Adminhtml \Form \Field ;
7
9
8
10
/**
@@ -51,7 +53,13 @@ protected function _prepareToRender()
51
53
'customer_group_id ' ,
52
54
['label ' => __ ('Customer Group ' ), 'renderer ' => $ this ->_getGroupRenderer ()]
53
55
);
54
- $ this ->addColumn ('min_sale_qty ' , ['label ' => __ ('Minimum Qty ' )]);
56
+ $ this ->addColumn (
57
+ 'min_sale_qty ' ,
58
+ [
59
+ 'label ' => __ ('Minimum Qty ' ),
60
+ 'class ' => 'required-entry validate-number validate-greater-than-zero '
61
+ ]
62
+ );
55
63
$ this ->_addAfter = false ;
56
64
$ this ->_addButtonLabel = __ ('Add Minimum Qty ' );
57
65
}
You can’t perform that action at this time.
0 commit comments