Skip to content

Commit 500b51f

Browse files
author
Stanislav Idolov
authored
ENGCOM-2318: GraphQL-116: Wrong category table name resolving #119
2 parents b4fc10d + 13d7bde commit 500b51f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
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)