Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 4a4bbe2

Browse files
author
Valeriy Nayda
committed
GraphQL-116: Wrong category table name resolving
1 parent f947cad commit 4a4bbe2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/CatalogGraphQl/Model/Category/LevelCalculator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function calculate(int $rootCategoryId) : int
3737
{
3838
$connection = $this->resourceConnection->getConnection();
3939
$select = $connection->select()
40-
->from($connection->getTableName('catalog_category_entity'), 'level')
40+
->from($this->resourceConnection->getTableName('catalog_category_entity'), 'level')
4141
->where($this->resourceCategory->getLinkField() . " = ?", $rootCategoryId);
4242
return (int) $connection->fetchOne($select);
4343
}

0 commit comments

Comments
 (0)