Skip to content

Commit be73bf0

Browse files
author
roman
committed
MAGETWO-61322: Fixed incorrect return-order flow
1 parent a2afbc3 commit be73bf0

File tree

1 file changed

+6
-0
lines changed
  • app/code/Magento/Sales/Controller/AbstractController

1 file changed

+6
-0
lines changed

app/code/Magento/Sales/Controller/AbstractController/Reorder.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
use Magento\Framework\App\Action;
1010
use Magento\Framework\Registry;
11+
use Magento\Framework\Exception\NotFoundException;
1112

1213
abstract class Reorder extends Action\Action
1314
{
@@ -43,6 +44,11 @@ public function __construct(
4344
*/
4445
public function execute()
4546
{
47+
if (!$this->getRequest()->isPost()) {
48+
throw new NotFoundException(__('Page not found.'));
49+
return;
50+
}
51+
4652
$result = $this->orderLoader->load($this->_request);
4753
if ($result instanceof \Magento\Framework\Controller\ResultInterface) {
4854
return $result;

0 commit comments

Comments
 (0)