Issue Bug Closed

#99380Core: Error handler (BE): PHP Warning: Undefined array key "hidden" in DatabaseRecordList.php

Christian Hackl 12/15/22, 11:58 updated 02/08/23, 16:06

Description

TYPO3 11.5.20
PHP 8.1.x

Happens for example BE-Module which uses:

$arrayPaginator = new ArrayPaginator($this->resultCures, $currentPage, $listNumber);
$paging = new SimplePagination($arrayPaginator);
$this->view->assignMultiple([
    'items' => $this->resultCures,
    'paginator' => $arrayPaginator,
    'paging' => $paging,
    'pages' => range(1, $paging->getLastPageNumber()),
]);

Core: Error handler (BE): PHP Warning: Undefined array key “hidden” in C:\MAMP\htdocs\typo3_sources\typo3_src-11.5.20\typo3\sysext\recordlist\Classes\RecordList\DatabaseRecordList.php line 1590

The $row in line 1590 contains only “uid” and “pid”.

I think “if(isset($row[$hiddenField])) { … }” should solve the problem.

Reviews 2

History 37

  1. Gerrit Code Review pushed patch set 1 for main to change 77179 status New Under Review 12/16/22, 15:01

  2. Gerrit Code Review pushed patch set 2 for main to change 77179 12/16/22, 15:04

  3. Gerrit Code Review pushed patch set 1 for 11.5 to change 77138 12/18/22, 22:18

  4. Oliver Bartsch commented and changed status Under Review Resolved done 0 % 100 % 12/18/22, 22:20

    Applied in changeset commit:a6bcac18072cc87a90326199e68f879b2c70b6de.

  5. Gerrit Code Review pushed patch set 2 for 11.5 to change 77138 status Resolved Under Review 12/19/22, 08:54

  6. Oliver Bartsch commented and changed status Under Review Resolved 12/19/22, 09:30

    Applied in changeset commit:da89f5bf3108d07bbc0c6d28e30a262482e1654d.

  7. Benni Mack changed status Resolved Closed 02/08/23, 16:06