Issue Bug Closed

#83328Wrong result with QueryGenerator->getTreeList()

Florian Rival 12/14/17, 14:46 updated 10/02/18, 10:53

Description

When retrieving tree list with QueryGenerator->getTreeList(), the result is often wrong.

Example with following tree :

A
!-> B -> D
!
!-> C -> E

$queryGenerator->getTreeList(#pid-A, 3, 0);

Result : A, B, C, D, E (OK)

$queryGenerator->getTreeList(#pid-A, 3, 1);

Result : B, E instead of B, C, D, E

$queryGenerator->getTreeList(#pid-A, 3, 2);

Empty result instead of D, E

The problem is because when concatenated pid, a comma is missing.

Reviews 3