Skip to content

Commit

Permalink
[BUGFIX] Fix exception in clipboard inside recycler folders
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
georgringer authored and wouter90 committed Apr 14, 2018
1 parent 0d2f64c commit f5d8b67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion typo3/sysext/backend/Classes/Clipboard/Clipboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ public function getContentFromTab($pad)
)
) {
$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())
];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down

0 comments on commit f5d8b67

Please sign in to comment.