Skip to content

Commit 7418f1a

Browse files
committed
#11953: Product configuration creator does not warn about invalid SKUs
- Make sku field as required - Length of sku gets from Sku model
1 parent 5cf0d34 commit 7418f1a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66
namespace Magento\ConfigurableProduct\Ui\DataProvider\Product\Form\Modifier;
77

8+
use Magento\Catalog\Model\Product\Attribute\Backend\Sku;
89
use Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\AbstractModifier;
910
use Magento\Ui\Component\Container;
1011
use Magento\Ui\Component\Form;
@@ -472,8 +473,8 @@ protected function getRows()
472473
[
473474
'validation' =>
474475
[
475-
'min_text_length' => '1',
476-
'max_text_length' => '10',
476+
'required-entry' => true,
477+
'max_text_length' => Sku::SKU_MAX_LENGTH,
477478
]
478479
]
479480
),

0 commit comments

Comments
 (0)