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 8491be6 commit f3a855cCopy full SHA for f3a855c
app/code/Magento/Catalog/Controller/Adminhtml/Product/Initialization/Helper.php
@@ -260,6 +260,11 @@ protected function setProductLinks(\Magento\Catalog\Model\Product $product)
260
$linkTypes[$linkTypeObject->getName()] = $product->getData($linkTypeObject->getName() . '_readonly');
261
}
262
263
+ // skip linkTypes that were already processed on initializeLinks plugins
264
+ foreach ($productLinks as $productLink) {
265
+ unset($linkTypes[$productLink->getLinkType()]);
266
+ }
267
+
268
foreach ($linkTypes as $linkType => $readonly) {
269
if (isset($links[$linkType]) && !$readonly) {
270
foreach ((array)$links[$linkType] as $linkData) {
0 commit comments