Skip to content
This repository has been archived by the owner on Dec 19, 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
  • Loading branch information
Stanislav Idolov authored Jul 18, 2018
2 parents b74a600 + d19fdc4 commit b4fc10d
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 b4fc10d

Please sign in to comment.