Skip to content

Commit d8c4afd

Browse files
author
Tobias Forkel
committed
Use product type id instead of product id
1 parent 41631d5 commit d8c4afd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/Model/Product/Option/SaveHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ private function processOptionsSaving(array $options, bool $hasChangedSku, Produ
122122
private function isProductHasRelations(ProductInterface $product): bool
123123
{
124124
$result = true;
125-
if (!in_array($product->getId(), $this->compositeProductTypes)
125+
if (!in_array($product->getTypeId(), $this->compositeProductTypes)
126126
&& $this->relation->getRelationsByChildren([$product->getId()])
127127
) {
128128
$result = false;

0 commit comments

Comments
 (0)