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 5973d67 commit 0b8ffd1Copy full SHA for 0b8ffd1
app/code/Magento/ConfigurableProduct/Model/Product/SaveHandler.php
@@ -66,8 +66,11 @@ public function execute($entity, $arguments = [])
66
$this->saveConfigurableProductAttributes($entity, $configurableOptions);
67
}
68
69
- $configurableLinks = (array) $extensionAttributes->getConfigurableProductLinks();
70
- $this->resourceModel->saveProducts($entity, $configurableLinks);
+ $configurableLinks = $extensionAttributes->getConfigurableProductLinks();
+ if ($configurableLinks !== null) {
71
+ $configurableLinks = (array)$configurableLinks;
72
+ $this->resourceModel->saveProducts($entity, $configurableLinks);
73
+ }
74
75
return $entity;
76
0 commit comments