Project

General

Profile

Actions

Bug #97728

closed

Empty TCA config enablecolumns will throw undefined index warning when copyRecord is called

Added by B. Kausch almost 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
DataHandler aka TCEmain
Target version:
-
Start date:
2022-06-02
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.0
Tags:
Complexity:
no-brainer
Is Regression:
Sprint Focus:

Description

If you have an empty array for the TCA config enablecolumns, the method copyRecord in the DataHandler class will throw an undefined index warning. See this line that is assuming the existence of a disabled index:

https://forge.typo3.org/projects/typo3cms-core/repository/1749/revisions/11.5/entry/typo3/sysext/core/Classes/DataHandling/DataHandler.php#L3275

Actions

Also available in: Atom PDF