File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/code/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -342,6 +342,7 @@ protected function customizeNameListeners(array $meta)
342
342
'handleShortDescriptionChanges ' => '${$.provider}:data.product.short_description ' ,
343
343
'handleSizeChanges ' => '${$.provider}:data.product.size '
344
344
],
345
+ 'allowImport ' => !$ this ->locator ->getProduct ()->getId (),
345
346
];
346
347
347
348
if (!in_array ($ listener , $ textListeners )) {
@@ -356,8 +357,7 @@ protected function customizeNameListeners(array $meta)
356
357
$ skuPath . static ::META_CONFIG_PATH ,
357
358
$ meta ,
358
359
[
359
- 'autoImportIfEmpty ' => true ,
360
- 'allowImport ' => $ this ->locator ->getProduct ()->getId () ? false : true ,
360
+ 'autoImportIfEmpty ' => true
361
361
]
362
362
);
363
363
You can’t perform that action at this time.
0 commit comments