Skip to content

Commit c79e3e6

Browse files
committed
magento#7413 fix, downloadable in group not working
1 parent ba25897 commit c79e3e6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/code/Magento/Downloadable/Observer/SaveDownloadableOrderItemObserver.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ public function execute(\Magento\Framework\Event\Observer $observer)
8686
//order not saved in the database
8787
return $this;
8888
}
89-
if ($orderItem->getProductType() != \Magento\Downloadable\Model\Product\Type::TYPE_DOWNLOADABLE) {
89+
if ($orderItem->getProductType() !== \Magento\Downloadable\Model\Product\Type::TYPE_DOWNLOADABLE
90+
&& $orderItem->getRealProductType() !== \Magento\Downloadable\Model\Product\Type::TYPE_DOWNLOADABLE
91+
) {
9092
return $this;
9193
}
9294
$product = $orderItem->getProduct();

0 commit comments

Comments
 (0)