Project

General

Profile

Actions

Bug #85229

closed

Invalid condition in suggest receiver page collection

Added by Alexander Stehlik almost 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2018-06-11
Due date:
% Done:

100%

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

Description

An invalid condition was introduced in getAllSubpagesOfPage() in the SuggestWizardDefaultReceiver in #77049:

$rows = array_column(($rows ?: []), 'uid', 'uid');
if (!count($rows)) {
    $pageIds = array_keys($rows);
    $pages = array_merge($pages, $pageIds);
} else {
    break;
}

The loop quits when there are no results!

Hint for testing

The error is only relevant when a custom recursive PID list is used:

TCEFORM.pages.content_from_pid.suggest.default {
    pidList = 12
    pidDepth = 99
}

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #77049: Doctrine: Migrate ext:backend/Form/Wizard/SuggestWizardDefaultReceiverClosedJacob Rasmussen2016-07-12

Actions
Actions

Also available in: Atom PDF