diff --git a/Helper/Data.php b/Helper/Data.php index ddddb08f1ca909c6da4f9ffb604e14fefe50744c..2d7aa1e6732c8270b400de3a1591eb05f58af218 100755 --- a/Helper/Data.php +++ b/Helper/Data.php @@ -1083,6 +1083,10 @@ class Data extends \Magento\Framework\App\Helper\AbstractHelper public function getTableName($tableName, $conn = ResourceConnection::DEFAULT_CONNECTION) { $connection = $this->_resource->getConnection($conn); + $tablePrefix = $this->_resource->getTablePrefix(); + if ($tablePrefix && strpos($tableName, $tablePrefix) !== 0) { + $tableName = $tablePrefix . $tableName; + } return $connection->getTableName($tableName, $conn); } public function getWebsiteId($storeId)