File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
app/code/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ public function __construct(
45
45
}
46
46
47
47
/**
48
- * { @inheritdoc}
48
+ * @inheritdoc
49
49
* @since 101.1.0
50
50
*/
51
51
public function modifyData (array $ data )
@@ -54,8 +54,11 @@ public function modifyData(array $data)
54
54
}
55
55
56
56
/**
57
- * {@inheritdoc}
57
+ * Add tier price info to meta array. {@inheritdoc}
58
+ *
58
59
* @since 101.1.0
60
+ * @param array $meta
61
+ * @return array
59
62
*/
60
63
public function modifyMeta (array $ meta )
61
64
{
@@ -150,7 +153,9 @@ private function getUpdatedTierPriceStructure(array $priceMeta)
150
153
'dataType ' => Price::NAME ,
151
154
'addbefore ' => '% ' ,
152
155
'validation ' => [
156
+ 'required-entry ' => true ,
153
157
'validate-number ' => true ,
158
+ 'validate-greater-than-zero ' => true ,
154
159
'less-than-equals-to ' => 100
155
160
],
156
161
'visible ' => $ firstOption
You can’t perform that action at this time.
0 commit comments