Skip to content

Commit b0d7a26

Browse files
author
Yauhen_Lyskavets
committed
MAGETWO-91679: Bundled SKUs are being assembled based on the product ID number
- Integration test fix
1 parent 5d5ae03 commit b0d7a26

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Bundle/Model/Product

1 file changed

+1
-1
lines changed

app/code/Magento/Bundle/Model/Product/Type.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ public function getSku($product)
310310
$selections = $this->getSelectionsByIds($selectionIds, $product);
311311
foreach ($selectionIds as $selectionId) {
312312
$entity = $selections->getItemByColumnValue('selection_id', $selectionId);
313-
if ($entity->getEntityId()) {
313+
if (isset($entity) && $entity->getEntityId()) {
314314
$skuParts[] = $entity->getSku();
315315
}
316316
}

0 commit comments

Comments
 (0)