Project

General

Profile

Actions

Bug #71665

closed

File collection: Filterin on storage doesn't work anymore

Added by Chris Müller over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2015-11-18
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
5.5
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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

filecollection.png (6.41 KB) filecollection.png Chris Müller, 2015-11-18 20:55
Actions #1

Updated by Frank Rakow over 8 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];
---
        }
   ...
 
Actions #2

Updated by Marc Hirdes over 8 years ago

Only the folders of the first file storage are shown. Please fix.

Thanks Frank for your solution.

Actions #3

Updated by Wouter Wolters over 8 years ago

  • Status changed from New to Closed

Hi, this is fixed with #72276 and will be released with 7.6.2

Actions

Also available in: Atom PDF