[TASK] Deleting currently opened folder in filelist results in error 30/27030/3
authorSteffen Ritter <info@rs-websystems.de>
Thu, 23 Jan 2014 16:24:23 +0000 (17:24 +0100)
committerSteffen Ritter <info@rs-websystems.de>
Thu, 30 Jan 2014 18:34:53 +0000 (19:34 +0100)
commit0a00643f7549cc3aeb4518e9a7065fb10187d402
tree85059b9804eb8bd1dd5b8c5076ec83eeaf182c10
parent916c273f6caf3513d003fe36d729bac8a09e33de
[TASK] Deleting currently opened folder in filelist results in error

When you have a folder opened in the filelist and then delete it
via the folder-tree the file-module shows an error after its reload.

This patch checks for existence of the folder before it is created.
If it is not existent it checks wether the parent folder exists and
is accessible. If, so the parent folder will be shown instead.

If the parent folder is not accessible the usual exception is thrown.

Releases: 6.2
Resolves: #54554
Change-Id: I7a21c76fd476ebce439489040f3b4c6786afd10a
Reviewed-on: https://review.typo3.org/27030
Reviewed-by: Marcin Sągol
Tested-by: Marcin Sągol
Reviewed-by: Marcel Wieser
Tested-by: Marcel Wieser
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
typo3/sysext/filelist/Classes/Controller/FileListController.php