Actions
Bug #90921
closedContextmenu for sys_filemounts not working
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2020-04-01
Due date:
% Done:
100%
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
Actions