Skip to content

Commit 3ad453e

Browse files
committed
Merge remote-tracking branch 'VladyslavSikailo/patch-2' into feature-ukraine-regions
2 parents dec2edf + d7eee84 commit 3ad453e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
class Collection extends \Magento\Catalog\Model\ResourceModel\Collection\AbstractCollection
2424
{
2525
/**
26-
* Event prefix
26+
* Event prefix name
2727
*
2828
* @var string
2929
*/
@@ -327,7 +327,7 @@ public function loadProductCount($items, $countRegular = true, $countAnchor = tr
327327
$countSelect = $this->getProductsCountQuery($categoryIds, (bool)$websiteId);
328328
$categoryProductsCount = $this->_conn->fetchPairs($countSelect);
329329
foreach ($anchor as $item) {
330-
$productsCount = isset($categoriesProductsCount[$item->getId()])
330+
$productsCount = isset($categoryProductsCount[$item->getId()])
331331
? (int)$categoryProductsCount[$item->getId()]
332332
: $this->getProductsCountFromCategoryTable($item, $websiteId);
333333
$item->setProductCount($productsCount);

0 commit comments

Comments
 (0)