Skip to content

Commit 5cf0d34

Browse files
AndrewMunzamoroka
authored andcommitted
#11953: Product configuration creator does not warn about invalid SKUs
- Added validation for SKU field inside "Configurations" tab
1 parent 3839c0f commit 5cf0d34

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

app/code/Magento/ConfigurableProduct/Ui/DataProvider/Product/Form/Modifier/ConfigurablePanel.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,17 @@ protected function getRows()
466466
[],
467467
['dataScope' => 'product_link']
468468
),
469-
'sku_container' => $this->getColumn('sku', __('SKU')),
469+
'sku_container' => $this->getColumn(
470+
'sku',
471+
__('SKU'),
472+
[
473+
'validation' =>
474+
[
475+
'min_text_length' => '1',
476+
'max_text_length' => '10',
477+
]
478+
]
479+
),
470480
'price_container' => $this->getColumn(
471481
'price',
472482
__('Price'),

0 commit comments

Comments
 (0)