Bug #102063
closedUndefined array key "editlock" in DatabaseRecordList
100%
Description
Core: Error handler (BE): PHP Warning: Undefined array key "editlock" in /typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php line 2304
It should still be checked whether $row also exists with this key
elseif (isset($GLOBALS['TCA'][$table]['ctrl']['editlock']) && $row[$GLOBALS['TCA'][$table]['ctrl']['editlock']]) {
->
elseif (isset($GLOBALS['TCA'][$table]['ctrl']['editlock']) && isset($row[$GLOBALS['TCA'][$table]['ctrl']['editlock']]) && $row[$GLOBALS['TCA'][$table]['ctrl']['editlock']]) {
Updated by Guido Schmechel 10 months ago
- Related to Bug #98459: Undefined array key "editlock" in DatabaseRecordList added
Updated by Markus Klein 10 months ago
So this means you have invalid TCA or a missing DB field, right?
If this is the case, I would say this is not a case that core must be able to cope with.
Updated by Gerrit Code Review 10 months 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/+/81301
Updated by Oliver Bartsch 10 months ago
Markus Klein wrote in #note-2:
So this means you have invalid TCA or a missing DB field, right?
If this is the case, I would say this is not a case that core must be able to cope with.
Generally with you. However adding some additional checks does IMO not hurt in this case.
Updated by Gerrit Code Review 10 months ago
Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81284
Updated by Oliver Bartsch 10 months ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset b412ad20a1565af70cd71d0502eb475fd1127385.
Updated by Gerrit Code Review 10 months ago
- Status changed from Resolved to Under Review
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/+/81306
Updated by Oliver Bartsch 10 months ago
- Status changed from Under Review to Resolved
Applied in changeset 272835c564a3c3cb6f029f1ddc1ae5a5d20843b8.