Bug #90921

Contextmenu for sys_filemounts not working

Added by Georg Ringer about 1 year ago. Updated 21 days ago.

Status:
Accepted
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2020-04-01
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

#1

Updated by Riccardo De Contardi about 1 year ago

  • Category set to Backend User Interface
#2

Updated by Christian Kuhn 21 days ago

confirmed. didn't had a deeper look, though.

Also available in: Atom PDF