We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2e450f commit 0bf53deCopy full SHA for 0bf53de
app/code/Magento/Sales/Controller/Guest/View.php
@@ -53,11 +53,10 @@ public function __construct(
53
*/
54
public function execute()
55
{
56
- if (!$this->getRequest()->isPost()) {
57
- throw new \Magento\Framework\Exception\NotFoundException(__('Page not found.'));
58
- }
59
- if (!$this->formKeyValidator->validate($this->getRequest())) {
60
- return $this->resultRedirectFactory->create()->setPath('*/*/form/');
+ if ($this->getRequest()->isPost()) {
+ if (!$this->formKeyValidator->validate($this->getRequest())) {
+ return $this->resultRedirectFactory->create()->setPath('*/*/form/');
+ }
61
}
62
63
$result = $this->guestHelper->loadValidOrder($this->getRequest());
0 commit comments