[BUGFIX] Filelist: Only show paste buttons if clipObj is set 14/21514/2
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:53:59 +0000 (21:53 +0200)
commitf59efeee93925129f16ed90ccb991055914b4a89
tree14a7920fd452baeabe7afa3ed4a4b736ca713d59
parent55b1ac4647f063f40639555d43e41a99e2fc50d2
[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/21514
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/filelist/Classes/Controller/FileListController.php
typo3/sysext/filelist/Classes/FileList.php