Skip to content

Commit a800c6b

Browse files
author
Shikha Mishra
authored
Fixed Static Test
1 parent 630bbb5 commit a800c6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,11 @@ public function execute(\Magento\Framework\Event\Observer $observer)
132132
);
133133
$linkPurchased->setLinkSectionTitle($linkSectionTitle)->save();
134134

135-
$linkStatus = \Magento\Downloadable\Model\Link\Purchased\Item::LINK_STATUS_PENDING;
135+
$linkStatus = \Magento\Downloadable\Model\Link\Purchased\Item::LINK_STATUS_PENDING;
136136
if ($orderStatusToEnableItem == \Magento\Sales\Model\Order\Item::STATUS_PENDING
137137
|| $orderItem->getOrder()->getState() == \Magento\Sales\Model\Order::STATE_COMPLETE
138138
) {
139-
$linkStatus = \Magento\Downloadable\Model\Link\Purchased\Item::LINK_STATUS_AVAILABLE;
139+
$linkStatus = \Magento\Downloadable\Model\Link\Purchased\Item::LINK_STATUS_AVAILABLE;
140140
}
141141

142142
foreach ($linkIds as $linkId) {

0 commit comments

Comments
 (0)