File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/code/Magento/Downloadable/Observer Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ public function execute(\Magento\Framework\Event\Observer $observer)
9292 if ($ purchasedLink ->getId ()) {
9393 return $ this ;
9494 }
95- $ orderItemStatusToEnable = $ this ->_scopeConfig ->getValue (
95+ $ statusToEnable = $ this ->_scopeConfig ->getValue (
9696 \Magento \Downloadable \Model \Link \Purchased \Item::XML_PATH_ORDER_ITEM_STATUS ,
9797 ScopeInterface::SCOPE_STORE ,
9898 $ orderItem ->getOrder ()->getStoreId ()
@@ -155,7 +155,7 @@ public function execute(\Magento\Framework\Event\Observer $observer)
155155 )->setNumberOfDownloadsBought (
156156 $ numberOfDownloads
157157 )->setStatus (
158- 1 == $ orderItemStatusToEnable ?
158+ 1 == $ statusToEnable ?
159159 \Magento \Downloadable \Model \Link \Purchased \Item::LINK_STATUS_AVAILABLE :
160160 \Magento \Downloadable \Model \Link \Purchased \Item::LINK_STATUS_PENDING
161161 )->setCreatedAt (
You can’t perform that action at this time.
0 commit comments