#99380Core: Error handler (BE): PHP Warning: Undefined array key "hidden" in DatabaseRecordList.php
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
-
Gerrit Code Review pushed patch set 1 for main to change 77179 status
NewUnder Review 12/16/22, 15:01 -
Gerrit Code Review pushed patch set 2 for main to change 77179 12/16/22, 15:04
-
Gerrit Code Review pushed patch set 1 for 11.5 to change 77138 12/18/22, 22:18
-
Oliver Bartsch commented and changed status
Under ReviewResolved done0 %100 % 12/18/22, 22:20 -
Gerrit Code Review pushed patch set 2 for 11.5 to change 77138 status
ResolvedUnder Review 12/19/22, 08:54 -
Oliver Bartsch commented and changed status
Under ReviewResolved 12/19/22, 09:30Applied in changeset commit:da89f5bf3108d07bbc0c6d28e30a262482e1654d.
-
Benni Mack changed status
ResolvedClosed 02/08/23, 16:06
Applied in changeset commit:a6bcac18072cc87a90326199e68f879b2c70b6de.