[TYPO3-core] RFC #14315: Filelist: AJAX bug with multiple file mounts in the folder tree

Benjamin Mack benni at typo3.org
Thu May 6 05:31:14 CEST 2010


Hey all,

this is a SVN patch request.

Type: bugfix

Branches: 4.3, trunk

BT reference: http://bugs.typo3.org/view.php?id=14315

Problem:
If you have non-admin BE users that have access to multiple file mounts 
through the filelist module, they get duplicate entries in the 
foldertree when using collapse/expand in the foldertree.

There are actual two problems, that might be related. The result is that 
some editors get a bug when using the foldertree and have multiple 
filemounts when navigating. (see screenshot)

Solution:
1. Change the div - wraps like in 0011482 - only for filelistfoldertree.
2. if running in AJAX mode, don't loop through all filemounts but break 
on the one that is used

Additional Info:
0010892 introduced the additional wraps
0011482 fixed it only for webpagetree


How to reproduce:

1) Add a couple of file mounts, each should have a nice hierarchical 
directory structure (at least two levels).
2) Add a BE user (non-admin) that is allowed to see the filelist and 
these file mounts.
3) Switch to that user, and navigate through the first file mount in the 
foldertree. Once you collapse and expand the subfolders again, you'll 
notice that the other file mounts get added again.
4) Apply the patch and try again
5) The problem is gone.


All the best,
Benni.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Duplicate Folder Tree.png
Type: image/png
Size: 26326 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100506/a5b0a51a/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 14315.patch
Type: text/x-patch
Size: 1481 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100506/a5b0a51a/attachment-0001.bin>


More information about the TYPO3-team-core mailing list