[BUGFIX] Fix exception in clipboard inside recycler folders 58/56658/2
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:39:26 +0000 (15:39 +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/56658
Tested-by: TYPO3com <no-reply@typo3.com>
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 cdfe12c..da92484 100644 (file)
@@ -389,7 +389,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 3ba2e5e..865a9e0 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">