Skip to content

Commit 329b557

Browse files
authored
Merge pull request #8579 from magento-gl/AC-9628
AC-9628::Fatal when trying to open a category page in the admin - Fetched table name from Resource class
2 parents 1122430 + 5ae4afe commit 329b557

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/code/Magento/Catalog/Model/ResourceModel/Category/Collection.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -568,8 +568,7 @@ private function getProductsCountFromCategoryTable(Category $item, string $websi
568568
*/
569569
private function getProductsCountQuery(array $categoryIds, $addVisibilityFilter = true): Select
570570
{
571-
$connections = $this->_resource->getConnection();
572-
$categoryTable = $connections->getTableName('catalog_category_product_index');
571+
$categoryTable = $this->_resource->getTableName('catalog_category_product_index');
573572
$select = $this->_conn->select()
574573
->from(
575574
['cat_index' => $categoryTable],

0 commit comments

Comments
 (0)