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 6e13440 + 8cc35fd commit aa1a36fCopy full SHA for aa1a36f
app/code/Magento/Catalog/Model/ProductLink/Repository.php
@@ -139,7 +139,7 @@ public function save(\Magento\Catalog\Api\Data\ProductLinkInterface $entity)
139
. 'Please ensure the parent product SKU is provided and try again.'
140
));
141
}
142
- if (!$entity->getLinkedProductSku()) {
+ if ($entity->getLinkedProductSku() === null || $entity->getLinkedProductSku() === '') {
143
throw new CouldNotSaveException(__('The linked product SKU is invalid. Verify the data and try again.'));
144
145
$linkedProduct = $this->productRepository->get($entity->getLinkedProductSku());
0 commit comments