Project

General

Profile

Actions

Bug #83328

closed

Wrong result with QueryGenerator->getTreeList()

Added by Florian Rival over 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2017-12-14
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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.


Files

bug_83328.diff (780 Bytes) bug_83328.diff Florian Rival, 2017-12-14 16:15

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #85024: Add functional tests for QueryGeneratorTestClosedAlexander Schnitzler2018-05-16

Actions
Actions

Also available in: Atom PDF