Issue Bug Closed

#93238Regression: After deleting image in record "add" button is not displayed again

Chris Müller 01/07/21, 09:00 updated 02/23/21, 13:12

Description

I have a TCA configuration for a record, where one image must be added:

'image' => [
    // ...
    config => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig(
        'image',
        [
            'appearance' => [
                'createNewRelationLinkTitle' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference',
            ],
            'foreign_match_fields' => [
                 'fieldname' => 'image',
                 'tablenames' => 'tx_myext_domain_model_table',
                 'table_local' => 'sys_file',
            ],
            'maxitems' => 1,
            'minitems' => 1,
        ],
        $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']
    )
]

When I delete the image, the “Add” button is not displayed again.

This error was introduced with TYPO3 10.4.11, in 10.4.10 it worked like it should.

It seems, it was introduced with #91595.

Reviews 2