typo3-rector icon indicating copy to clipboard operation
typo3-rector copied to clipboard

showRemovedLocalizationRecords should be removed from TCA in 12 LTS

Open misterboe opened this issue 1 year ago • 0 comments

Rector 0.17.0 ssch/typo3-rector 1.5.2 Typo3 12LTS

TCA

'falFileRelation' => [
    'label' => 'Fal File Relation',
    'description' => 'Enter Description',
    'exclude' => 0,
    'config' => [
        'type' => 'inline',
        'foreign_table' => 'tx_table',
        'foreign_field' => 'foreignfield',
        'maxitems' => 1,
        'appearance' => [
            'collapseAll' => true,
            'useSortable' => true,
            'showSynchronizationLink' => false,
            'showAllLocalizationLink' => true,
            'showPossibleLocalizationRecords' => false,
            'showRemovedLocalizationRecords' => false,
            'expandSingle' => true,
            'enabledControls' => [
                'localize' => true,
            ],
        ],
        'behaviour' => [
            'mode' => 'select',
        ],
    ],
],

The TCA field 'falFileRelation' of table 'tt_content' is defined as type 'inline' with the 'appearance.showRemovedLocalizationRecords' option set. As this option is not evaluated anymore and no replacement exists, it should be removed from TCA.

misterboe avatar Dec 21 '23 07:12 misterboe