Skip to content

Commit 18ae227

Browse files
committed
ENGCOM-3887: Static and Unit tests fix.
1 parent 3a01bc0 commit 18ae227

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

app/code/Magento/Sales/Controller/Download/DownloadCustomOption.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,18 @@
77

88
namespace Magento\Sales\Controller\Download;
99

10+
use Magento\Framework\App\Action\HttpGetActionInterface;
1011
use Magento\Framework\App\ObjectManager;
1112
use Magento\Framework\App\Action\Context;
1213
use Magento\Catalog\Model\Product\Type\AbstractType;
1314
use Magento\Framework\Controller\Result\ForwardFactory;
1415

1516
/**
1617
* Class DownloadCustomOption
18+
*
1719
* @package Magento\Sales\Controller\Download
1820
*/
19-
class DownloadCustomOption extends \Magento\Framework\App\Action\Action
21+
class DownloadCustomOption extends \Magento\Framework\App\Action\Action implements HttpGetActionInterface
2022
{
2123
/**
2224
* @var ForwardFactory
@@ -95,7 +97,8 @@ public function execute()
9597
/** @var $productOption \Magento\Catalog\Model\Product\Option */
9698
$productOption = $this->_objectManager->create(
9799
\Magento\Catalog\Model\Product\Option::class
98-
)->load($optionId);
100+
);
101+
$productOption->load($optionId);
99102
}
100103

101104
if ($productOption->getId() && $productOption->getType() != 'file') {

0 commit comments

Comments
 (0)