[BUGFIX] FAL: Do not paste a folder into itself 86/36386/10
authorHelmut Hummel <helmut.hummel@typo3.org>
Thu, 29 Jan 2015 21:03:57 +0000 (22:03 +0100)
committerFrans Saris <franssaris@gmail.com>
Sat, 31 Jan 2015 21:54:12 +0000 (22:54 +0100)
commit7ade3e642ff71a4f9037bc856931ca10c732ee5f
tree86cd41f2f9a0cab9049ce46104f50c6994662698
parent4fd8558c1caf418f9fbc94998e07ccf707516068
[BUGFIX] FAL: Do not paste a folder into itself

If a folder is selected in fileadmin, which is already in
the clipboard, the paste icon is not shown to prevent
a endlessly nested folder structure.

Also the correct exception is thrown in ResourceStorage
if it occurs anyway.

Resolves: #51670
Releases: master, 6.2
Change-Id: I996cb8eede1371e479f756f18e1ede03f65950cb
Reviewed-on: http://review.typo3.org/36386
Reviewed-by: Michael Oehlhof <typo3@oehlhof.de>
Tested-by: Michael Oehlhof <typo3@oehlhof.de>
Reviewed-by: Helmut Hummel <helmut.hummel@typo3.org>
Tested-by: Helmut Hummel <helmut.hummel@typo3.org>
Reviewed-by: Philipp Gampe <philipp.gampe@typo3.org>
Reviewed-by: Frans Saris <franssaris@gmail.com>
Tested-by: Frans Saris <franssaris@gmail.com>
typo3/sysext/backend/Classes/ClickMenu/ClickMenu.php
typo3/sysext/core/Classes/Resource/ResourceStorage.php
typo3/sysext/core/Classes/Utility/File/ExtendedFileUtility.php
typo3/sysext/filelist/Classes/FileList.php