Skip to content

Commit 1f2a854

Browse files
author
Bohdan Korablov
committed
Merge remote-tracking branch 'tango/MAGETWO-51831' into MAGETWO-51859
2 parents 03eb24c + bd46881 commit 1f2a854

File tree

1 file changed

+2
-2
lines changed
  • app/code/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier

1 file changed

+2
-2
lines changed

app/code/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier/General.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@ protected function customizeNameListeners(array $meta)
342342
'handleShortDescriptionChanges' => '${$.provider}:data.product.short_description',
343343
'handleSizeChanges' => '${$.provider}:data.product.size'
344344
],
345+
'allowImport' => !$this->locator->getProduct()->getId(),
345346
];
346347

347348
if (!in_array($listener, $textListeners)) {
@@ -356,8 +357,7 @@ protected function customizeNameListeners(array $meta)
356357
$skuPath . static::META_CONFIG_PATH,
357358
$meta,
358359
[
359-
'autoImportIfEmpty' => true,
360-
'allowImport' => $this->locator->getProduct()->getId() ? false : true,
360+
'autoImportIfEmpty' => true
361361
]
362362
);
363363

0 commit comments

Comments
 (0)