Skip to content

Commit 39f2dde

Browse files
author
Jakob Meissner
committed
Download link does not get rendered in invoice email
1 parent 243939c commit 39f2dde

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Downloadable/Block/Sales/Order/Email/Items/Downloadable.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,12 @@ public function __construct(
6868
public function getLinks()
6969
{
7070
$this->_purchased = $this->_purchasedFactory->create()->load(
71-
$this->getItem()->getId(),
71+
$this->getItem()->getOrderItemId(),
7272
'order_item_id'
7373
);
7474
$purchasedLinks = $this->_itemsFactory->create()->addFieldToFilter(
7575
'order_item_id',
76-
$this->getItem()->getId()
76+
$this->getItem()->getOrderItemId()
7777
);
7878
$this->_purchased->setPurchasedItems($purchasedLinks);
7979

0 commit comments

Comments
 (0)