Skip to content
This repository was archived by the owner on Dec 19, 2019. It is now read-only.

Commit 3b04c94

Browse files
author
Valeriy Nayda
committed
GraphQL-121: Fix regexp when filter by root category id
-- fixes after mainline merge
1 parent 481c7bf commit 3b04c94

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/code/Magento/CatalogGraphQl/Model/Resolver/Products/DataProvider/ExtractDataFromCategoryTree.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public function execute(\Iterator $iterator): array
4444
$iterator->next();
4545
$nextCategory = $iterator->current();
4646
$tree[$category->getId()] = $this->categoryHydrator->hydrateCategory($category);
47+
$tree[$category->getId()]['model'] = $category;
4748
if ($nextCategory && (int) $nextCategory->getLevel() !== (int) $category->getLevel()) {
4849
$tree[$category->getId()]['children'] = $this->execute($iterator);
4950
}

0 commit comments

Comments
 (0)