Skip to content

Commit 84757bf

Browse files
Fixing get category collection when two root categories start with the same number (#1582) (#1613)
Co-authored-by: Igor Figueiredo <[email protected]>
1 parent 6acdf35 commit 84757bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Helper/Entity/CategoryHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public function getCategoryCollectionQuery($storeId, $categoryIds = null)
125125
{
126126
/** @var \Magento\Store\Model\Store $store */
127127
$store = $this->storeManager->getStore($storeId);
128-
$storeRootCategoryPath = sprintf('%d/%d', $this->getRootCategoryId(), $store->getRootCategoryId());
128+
$storeRootCategoryPath = sprintf('%d/%d/', $this->getRootCategoryId(), $store->getRootCategoryId());
129129

130130
$unserializedCategorysAttrs = $this->getAdditionalAttributes($storeId);
131131
$additionalAttr = array_column($unserializedCategorysAttrs, 'attribute');

0 commit comments

Comments
 (0)