mia3 / crossmedia_fourallportal

0 stars 4 forks source link

TYPO3 12: Table sys_language was removed #28

Open 3l73 opened 3 months ago

3l73 commented 3 months ago

The table 'sys_language' was deprecated since TYPO3 11.2 and removed with TYPO3 12.

The TCA currently uses the wrong configuration for the field sys_language_uid.

        'sys_language_uid' => [
            'exclude' => 1,
            'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
            'config' => [
                'type' => 'language',
                'renderType' => 'selectSingle',
                'foreign_table' => 'sys_language',
                'foreign_table_where' => 'ORDER BY sys_language.title',
                'items' => [
                    ['LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1],
                    ['LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0],
                ],
            ],
        ],

TYPO3 11.2 introduces a new type language which replaces the configuration above.

Adapting this change the configuration will look like this:

        'sys_language_uid' => [
            'exclude' => true,
            'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.language',
            'config' => ['type' => 'language'],
        ],