Bug #99380
closedCore: Error handler (BE): PHP Warning: Undefined array key "hidden" in DatabaseRecordList.php
100%
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.
Updated by Gerrit Code Review almost 2 years ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/77179
Updated by Gerrit Code Review almost 2 years ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/77179
Updated by Gerrit Code Review almost 2 years ago
Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/77138
Updated by Oliver Bartsch almost 2 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset a6bcac18072cc87a90326199e68f879b2c70b6de.
Updated by Gerrit Code Review almost 2 years ago
- Status changed from Resolved to Under Review
Patch set 2 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/77138
Updated by Oliver Bartsch almost 2 years ago
- Status changed from Under Review to Resolved
Applied in changeset da89f5bf3108d07bbc0c6d28e30a262482e1654d.