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.
2 parents 86cfbe7 + 0b8ffd1 commit cb1acb7Copy full SHA for cb1acb7
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