File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
app/code/Magento/ConfigurableProduct/Ui/DataProvider/Product/Form/Modifier Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 55 */
66namespace Magento \ConfigurableProduct \Ui \DataProvider \Product \Form \Modifier ;
77
8+ use Magento \Catalog \Model \Product \Attribute \Backend \Sku ;
89use Magento \Catalog \Ui \DataProvider \Product \Form \Modifier \AbstractModifier ;
910use Magento \Ui \Component \Container ;
1011use Magento \Ui \Component \Form ;
@@ -466,7 +467,17 @@ protected function getRows()
466467 [],
467468 ['dataScope ' => 'product_link ' ]
468469 ),
469- 'sku_container ' => $ this ->getColumn ('sku ' , __ ('SKU ' )),
470+ 'sku_container ' => $ this ->getColumn (
471+ 'sku ' ,
472+ __ ('SKU ' ),
473+ [
474+ 'validation ' =>
475+ [
476+ 'required-entry ' => true ,
477+ 'max_text_length ' => Sku::SKU_MAX_LENGTH ,
478+ ]
479+ ]
480+ ),
470481 'price_container ' => $ this ->getColumn (
471482 'price ' ,
472483 __ ('Price ' ),
You can’t perform that action at this time.
0 commit comments