#104403Setting "allowLanguageSynchronization" not possible in "columnsOverrides"
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'].
Reviews 4
- 12.4 85983[BUGFIX] Migrate allowLanguageSynchronization in columnsOverrides
- main 85721[BUGFIX] Migrate allowLanguageSynchronization in columnsOverrides
- main 85976[WIP][BUGFIX] Consider localization state for TCA columnsOverrides
- 12.4 85981[WIP][BUGFIX] Consider localization state for TCA columnsOverrides