Project

General

Profile

Actions

Bug #48467

closed

Filelist renders wrong root-icons (expandable or not) for file-mounts

Added by Simon Schick over 11 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Backend User Interface
Target version:
Start date:
2013-05-22
Due date:
% Done:

100%

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

Description

I installed a TYPO3 v6.0.0 installation for someone and now updated to TYPO3 v6.1.0.

The files are all organized in file-mounts, that are linked to storage-objects.

In this project, I have two storage-objects, where one of them has over 5 mounts.

One of my customers informed me, that he was not able to see the subfolders of some of the file-mounts.

As I looked through the code, I found out, that, for the listing, you loop over the list of storageObjects and for each one of them, you fetch a list of file-mounts or take the rootLevelFolder if there is none (f.e. as administrator).

Later on you loop over an array (either the rootLevelFolders or the list of fileMounts) and show the plus/minus/blank sign based on if the storage-object is browsable and the rootLevelFolder has any subfolders.

In my case, the user himself just was allowed to see the fileMounts, not the rootLevelFolder of the storageObject. In this case, it just checked if the first fileMount had subfolders, which wasn't the case.

I fixed the bug by comparing the count of subfolders of the actual fileMount the loop was running over.

Patch is attached ... I don't really know how to put it into Gerrit ... hopefully someone is kindly enough to do it :)


Files

local_history.patch (919 Bytes) local_history.patch Simon Schick, 2013-05-22 19:10
Actions

Also available in: Atom PDF