[BUGFIX] Fix exception in clipboard inside recycler folders 70/56570/5
authorGeorg Ringer <georg.ringer@gmail.com>
Thu, 5 Apr 2018 15:17:22 +0000 (17:17 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Sat, 14 Apr 2018 13:20:20 +0000 (15:20 +0200)
To avoid exceptions in a _recycler_ folder in the filelist when
using the clipboard, the image is built without an ImageViewHelper.

Resolves: #84578
Releases: master, 8.7
Change-Id: Ib596f8bdec5eba1b2cc13a0b61abd3b12f186b65
Reviewed-on: https://review.typo3.org/56570
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Guido Schmechel <littlegee@web.de>
Tested-by: Guido Schmechel <littlegee@web.de>
Reviewed-by: Joerg Boesche <typo3@joergboesche.de>
Tested-by: Joerg Boesche <typo3@joergboesche.de>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/backend/Classes/Clipboard/Clipboard.php
typo3/sysext/backend/Resources/Private/Partials/Clipboard/TabContent.html

index 6e23ca6..d6fdb67 100644 (file)
@@ -391,7 +391,7 @@ class Clipboard
                                 )
                             ) {
                                 $thumb = [
-                                    'image' => $fileObject->process(\TYPO3\CMS\Core\Resource\ProcessedFile::CONTEXT_IMAGEPREVIEW, []),
+                                    'image' => $fileObject->process(\TYPO3\CMS\Core\Resource\ProcessedFile::CONTEXT_IMAGEPREVIEW, [])->getPublicUrl(true),
                                     'title' => htmlspecialchars($fileObject->getName())
                                 ];
                             }
index ac8f4dd..0fb267c 100644 (file)
@@ -18,7 +18,7 @@
                </f:if>
                <f:if condition="{content.thumb}">
                        <br>
-                       <f:image image="{content.thumb.image}" title="{content.thumb.title}"/>
+                       <img src="{content.thumb.image}" title="{content.thumb.title}" />
                </f:if>
        </td>
        <td class="col-control nowrap">