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 b2edfa7 commit 8f9dd1eCopy full SHA for 8f9dd1e
app/code/Magento/Sales/Controller/AbstractController/Reorder.php
@@ -54,9 +54,13 @@ public function __construct(
54
*/
55
public function execute()
56
{
57
- if (!$this->getRequest()->isPost() || !$this->formKeyValidator->validate($this->getRequest())) {
+ if ($this->getRequest()->isPost()) {
58
+ if (!$this->formKeyValidator->validate($this->getRequest())) {
59
+ $this->messageManager->addErrorMessage(__('Invalid Form Key. Please refresh the page.'));
60
+ $this->_redirect('*/*/');
61
+ }
62
+ } else {
63
throw new NotFoundException(__('Page not found.'));
- return;
64
}
65
66
$result = $this->orderLoader->load($this->_request);
0 commit comments