Skip to content
This repository has been archived by the owner on Apr 29, 2019. It is now read-only.

Commit

Permalink
ENGCOM-2320: Fix the category tree depth calculation bug #102
Browse files Browse the repository at this point in the history
 - Merge Pull Request magento/graphql-ce#102 from magento/graphql-ce:graphql-fix-the-category-tree-depth-calculation-issue
 - Merged commits:
   1. 9116d82
  • Loading branch information
magento-engcom-team committed Jul 13, 2018
2 parents ce5eacd + 9116d82 commit d19fdc4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
class CategoryTree
{
/**
* In depth we need to calculate only children nodes, so 2 first wrapped nodes should be ignored
* In depth we need to calculate only children nodes, so the first wrapped node should be ignored
*/
const DEPTH_OFFSET = 2;
const DEPTH_OFFSET = 1;

/**
* @var CollectionFactory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@ public function testCategoriesTree()
children {
level
id
children {
id
}
}
}
}
Expand Down

0 comments on commit d19fdc4

Please sign in to comment.