Project

General

Profile

Actions

Bug #102063

closed

Undefined array key "editlock" in DatabaseRecordList

Added by Guido Schmechel about 1 year ago. Updated 4 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
Start date:
2023-09-28
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.1
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:

Description

Core: Error handler (BE): PHP Warning: Undefined array key "editlock" in /typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php line 2304

https://github.com/TYPO3/typo3/blob/11.5/typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php#L2304

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']]) {

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #98459: Undefined array key "editlock" in DatabaseRecordListClosedMarkus Klein2022-09-28

Actions
Actions

Also available in: Atom PDF