File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
app/code/Magento/Sales/Controller/Download Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 77
88namespace Magento \Sales \Controller \Download ;
99
10+ use Magento \Framework \App \Action \HttpGetActionInterface ;
1011use Magento \Framework \App \ObjectManager ;
1112use Magento \Framework \App \Action \Context ;
1213use Magento \Catalog \Model \Product \Type \AbstractType ;
1314use 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 ' ) {
You can’t perform that action at this time.
0 commit comments