File tree 1 file changed +12
-1
lines changed
app/code/Magento/ConfigurableProduct/Ui/DataProvider/Product/Form/Modifier
1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 5
5
*/
6
6
namespace Magento \ConfigurableProduct \Ui \DataProvider \Product \Form \Modifier ;
7
7
8
+ use Magento \Catalog \Model \Product \Attribute \Backend \Sku ;
8
9
use Magento \Catalog \Ui \DataProvider \Product \Form \Modifier \AbstractModifier ;
9
10
use Magento \Ui \Component \Container ;
10
11
use Magento \Ui \Component \Form ;
@@ -466,7 +467,17 @@ protected function getRows()
466
467
[],
467
468
['dataScope ' => 'product_link ' ]
468
469
),
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
+ ),
470
481
'price_container ' => $ this ->getColumn (
471
482
'price ' ,
472
483
__ ('Price ' ),
You can’t perform that action at this time.
0 commit comments