Actions
Bug #104403
openSetting "allowLanguageSynchronization" not possible in "columnsOverrides"
Status:
New
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2024-07-16
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
11
PHP Version:
8.2
Tags:
TCA
Complexity:
Is Regression:
Sprint Focus:
Description
When enhancing TCA with
$GLOBALS['TCA']['tt_content']['types']['mytype']['columnsOverrides']['pages']['config']['behaviour']['allowLanguageSynchronization'] = true;
an error is thrown:
Call to a member function isCustomState() on null
Error occurs in TYPO3 v11 and surely also v12 and v13.
It seems to be caused by this:
https://github.com/TYPO3-CMS/core/blob/main/Classes/DataHandling/Localization/State.php#L70
You check $GLOBALS['TCA']['tt_content']['columns']
here, but "allowLanguageSynchronization" is not defined here, it's defined in $GLOBALS['TCA']['tt_content']['types']['mytype']['columnsOverrides']
.
No data to display
Actions