Issue Bug Closed

#90921Contextmenu for sys_filemounts not working

Georg Ringer 04/01/20, 20:10 updated 09/07/21, 07:40

Description

The contextmenu for sys_filemounts is currently broken as it tries to find a file/folder with the given UID because \TYPO3\CMS\Filelist\ContextMenu\ItemProviders\FilemountsProvider inherits from \TYPO3\CMS\Filelist\ContextMenu\ItemProviders\FileProvider.

If changed to inherit from \TYPO3\CMS\Backend\ContextMenu\ItemProviders\RecordProvider and adopting the canHandle method it works but 2 questions still open:

1) Why is there an explicit check in RecordProvider

if (in_array($this->table, ['sys_file', 'sys_filemounts', 'sys_file_storage', 'pages'], true)
            || strpos($this->table, '-drag') !== false) {
            return false;
        }

2) Why does it work for FileStorageProvider which also inherits from FileProvider

Reviews 2