Skip to content

Commit 316be41

Browse files
committed
Merge remote-tracking branch 'git-35216/patch-2' into feature-ukraine-regions
2 parents 651fd83 + c2caf8e commit 316be41

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,8 @@ private function getProductsCountFromCategoryTable(Category $item, string $websi
556556
*/
557557
private function getProductsCountQuery(array $categoryIds, $addVisibilityFilter = true): Select
558558
{
559-
$categoryTable = $this->getTable('catalog_category_product_index');
559+
$connections = $this->_resource->getConnection();
560+
$categoryTable = $connections->getTableName('catalog_category_product_index');
560561
$select = $this->_conn->select()
561562
->from(
562563
['cat_index' => $categoryTable],

0 commit comments

Comments
 (0)