diff --git a/lib/internal/Magento/Framework/App/ResourceConnection/Config.php b/lib/internal/Magento/Framework/App/ResourceConnection/Config.php index 6c133ea3bae75..9077ff649d364 100644 --- a/lib/internal/Magento/Framework/App/ResourceConnection/Config.php +++ b/lib/internal/Magento/Framework/App/ResourceConnection/Config.php @@ -63,9 +63,7 @@ public function getConnectionName($resourceName) { $this->initConnections(); $connectionName = \Magento\Framework\App\ResourceConnection::DEFAULT_CONNECTION; - - $resourceName = preg_replace("/_setup$/", '', $resourceName); - + if (!isset($this->_connectionNames[$resourceName])) { $resourcesConfig = $this->get(); $pointerResourceName = $resourceName;