Skip to content

Commit 3f027ca

Browse files
author
Sergii Kovalenko
committed
MAGETWO-90942: Couldnt edit order from admin with enabled split db
1 parent afdb7ae commit 3f027ca

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

app/code/Magento/Quote/Model/ResourceModel/Quote.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ public function getReservedOrderId($quote)
180180
public function isOrderIncrementIdUsed($orderIncrementId)
181181
{
182182
/** @var \Magento\Framework\DB\Adapter\AdapterInterface $adapter */
183-
$adapter = $this->getConnection();
183+
$adapter = $this->_resources->getConnection('sales');
184184
$bind = [':increment_id' => $orderIncrementId];
185185
/** @var \Magento\Framework\DB\Select $select */
186186
$select = $adapter->select();

app/code/Magento/SalesSequence/Setup/Recurring.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@
55
*/
66
namespace Magento\SalesSequence\Setup;
77

8-
use Magento\Framework\Setup\InstallDataInterface;
98
use Magento\Framework\Setup\InstallSchemaInterface;
109
use Magento\Framework\Setup\ModuleContextInterface;
11-
use Magento\Framework\Setup\ModuleDataSetupInterface;
1210
use Magento\Framework\Setup\SchemaSetupInterface;
1311

1412
/**

0 commit comments

Comments
 (0)