Issue Bug Closed

#85229Invalid condition in suggest receiver page collection

Alexander Stehlik 06/11/18, 22:00 updated 10/02/18, 10:46

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
}

Reviews 2