Issue Bug Closed

#105938File buttons are disappearing after deletion of file relation

Rudolf Rohaczek 01/15/25, 11:35 updated 12/02/25, 14:26

Description

Since TYPO3 13.4.3 i have the following problem with media fields in IRRE elements:

When i delete an existing file relation, the buttons “Create new relation” / “Select & upload files” are disappearing. Because of that i cannot save the element, because its mandatory to have a file relation in this case.

After i rolled back to TYPO3 13.4.2 i did not experience this wrong behavior.

Reviews 5

Files 2

History 79

  1. Garvin Hicking commented and changed status New Needs Feedback <span data-processor="relativetime" data-value="2025-01-15T12:21:40+00:00" > 01/15/25, 12:21 </span>

    This might be in relation to https://review.typo3.org/c/Packages/TYPO3.CMS/+/87435

    How is the TCA of that field defined? Are you using min/maxitems by chance?

  2. Rudolf Rohaczek commented <span data-processor="relativetime" data-value="2025-01-15T12:30:52+00:00" > 01/15/25, 12:30 </span>

    Garvin Hicking wrote in #note-1:
    > This might be in relation to https://review.typo3.org/c/Packages/TYPO3.CMS/+/87435
    >
    > How is the TCA of that field defined? Are you using min/maxitems by chance?

    Yes, min and maxitems are used:

            'image' => [
                'exclude' => true,
                'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.images',
                'config' => [
                    'type' => 'file',
                    'allowed' => ['jpg','jpeg','png','webp'],
                    'minitems' => 1,
                    'maxitems' => 1,
                ],
            ],
            'media' => [
                'exclude' => true,
                'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:media',
                'config' => [
                    'type' => 'file',
                    'allowed' => ['mp4'],
                    'maxitems' => 1,
                ],
            ],
  3. Garvin Hicking commented and changed status Needs Feedback Accepted <span data-processor="relativetime" data-value="2025-01-15T12:40:29+00:00" > 01/15/25, 12:40 </span>

    I can confirm this behaviour. Created a patch with an EXT:styleguide example.

  4. Gerrit Code Review pushed patch set 1 for main to change 87775 status Accepted Under Review <span data-processor="relativetime" data-value="2025-01-16T08:01:41+00:00" > 01/16/25, 08:01 </span>

  5. Garvin Hicking commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2025-01-16T08:25:12+00:00" > 01/16/25, 08:25 </span>

    Applied in changeset commit:c9153da85d3f5182f5b6e463ed3a2a913894caff.