[BUGFIX] Filelist: Only show paste buttons if clipObj is set 31/21131/3
authorPhilipp Gampe <philipp.gampe@typo3.org>
Tue, 28 May 2013 13:14:19 +0000 (15:14 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Wed, 19 Jun 2013 19:51:41 +0000 (21:51 +0200)
commitf07f872e4aad8a9a257b36735a2ccafd29cbe21b
tree80ddeb1635683d35e1307cc77992b09210297d58
parent1b26152501c7f4158c18cc57aced21ff531a94af
[BUGFIX] Filelist: Only show paste buttons if clipObj is set

During introduction of the paste buttons for empty folders, I assumed
that the clipboard object is always set.
This might not be the case, e.g. in EXT:sphinx 4.0.0.

Wrap the paste button code with a check if the clibObj is set.

We can not set the clibObj here, because it depends on variables of the
calling class.

Resolves: #48603
Releases: 6.2, 6.1, 6.0
Change-Id: I2c7c322c9cb994cfdfa1511c96e8c7da143dc77a
Reviewed-on: https://review.typo3.org/21131
Reviewed-by: Alexander Opitz
Tested-by: Alexander Opitz
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/filelist/Classes/Controller/FileListController.php
typo3/sysext/filelist/Classes/FileList.php