We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8f2a08 commit 43d48e3Copy full SHA for 43d48e3
app/code/Magento/Catalog/Controller/Adminhtml/Product/Initialization/Helper.php
@@ -300,6 +300,7 @@ protected function setProductLinks(Product $product)
300
foreach ($productLinks as $productLink) {
301
unset($linkTypes[$productLink->getLinkType()]);
302
}
303
+
304
$readonlyRelatedProducts = false;
305
$readonlyUpSellProducts = false;
306
foreach ($linkTypes as $linkType => $readonly) {
@@ -328,6 +329,7 @@ protected function setProductLinks(Product $product)
328
329
if ($readonlyRelatedProducts && $readonlyUpSellProducts && empty($productLinks)) {
330
$productLinks = $currentProductLinks;
331
332
333
return $product->setProductLinks($productLinks);
334
335
0 commit comments