Issue Bug Closed

#72605InlineControlContainer unnecessary dependency causes Problems

Stefan Köske 01/08/16, 15:11 updated 09/27/19, 07:19

Description

\TYPO3\CMS\Backend\Form\Container\InlineControlContainer
dependency between $allowed and $onlineMediaAllowed makes it impossible to create a button for “Add Media by URL” button only. You can’t create this button without creating the “Select & Upload Files” Button.

Starting from Line 478
if (
       $folder instanceof Folder
        && $folder->checkActionPermission('add')
        ) {
        // Create "Select & Upload Files" Button
        if (!empty($onlineMediaAllowed)) {
            // Create "Add Media by URL" Button
        }
}

I suggest to seperate those both if querries.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.