Bug #71665
closedFile collection: Filterin on storage doesn't work anymore
0%
Description
I upgraded from TYPO3 6.2 to 7.6 and found an issue in using the file collection record.
I have three file storages: Configuration, Resources and Websites. An existing record has the file storage "Websites". Now I am getting an error in the field "Folder": [ INVALID VALUE ... ] and there is shown only the folders for Resources. If I switch the file storage entry, anytime the folders for Resources are shown. The rendering of the files in the collections in the frontend works, only the assignment in the record does not work.
The folder exists and has files in it.
Files
Updated by Frank Rakow almost 9 years ago
The problem is in typo3/sysext/core/Classes/Resource/Service/UserFileMountService.php on line 43
The $PA['row']['storage'] is an array and the uid is stored at postion 0.
$storageUid = (int)$PA['row']['storage']0;
public function renderTceformsSelectDropdown(&$PA) { // If working for sys_filemounts table $storageUid = (int)$PA['row']['base'][0]; if (!$storageUid) { // If working for sys_file_collection table --- >>> $storageUid = (int)$PA['row']['storage'][0]; --- } ...
Updated by Marc Hirdes almost 9 years ago
Only the folders of the first file storage are shown. Please fix.
Thanks Frank for your solution.
Updated by Wouter Wolters almost 9 years ago
- Status changed from New to Closed
Hi, this is fixed with #72276 and will be released with 7.6.2