Skip to content

Commit b2edfa7

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

File tree

1 file changed

+2
-1
lines changed
  • app/code/Magento/Sales/Controller/AbstractController

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
namespace Magento\Sales\Controller\AbstractController;
88

99
use Magento\Framework\App\Action;
10+
use Magento\Framework\App\ObjectManager;
1011
use Magento\Framework\Data\Form\FormKey\Validator;
1112
use Magento\Framework\Registry;
1213
use Magento\Framework\Exception\NotFoundException;
@@ -42,7 +43,7 @@ public function __construct(
4243
) {
4344
$this->orderLoader = $orderLoader;
4445
$this->_coreRegistry = $registry;
45-
$this->formKeyValidator = $formKeyValidator;
46+
$this->formKeyValidator = $formKeyValidator ?: ObjectManager::getInstance()->create(Validator::class);
4647
parent::__construct($context);
4748
}
4849

0 commit comments

Comments
 (0)