Skip to content

Commit c2caf8e

Browse files
committed
Fix typo which trigger performance bug #35216 : Fixed failing integration test
1 parent cc6cdd8 commit c2caf8e

File tree

2 files changed

+3
-1
lines changed
  • app/code/Magento/Catalog/Model/ResourceModel/Category
  • dev/tests/integration/testsuite/Magento/Catalog/Block/Adminhtml/Category/Checkboxes

2 files changed

+3
-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],

dev/tests/integration/testsuite/Magento/Catalog/Block/Adminhtml/Category/Checkboxes/TreeTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
*
2222
* @magentoAppArea adminhtml
2323
* @magentoDbIsolation enabled
24+
* @magentoAppIsolation enabled
2425
*/
2526
class TreeTest extends TestCase
2627
{

0 commit comments

Comments
 (0)