[BUGFIX] Link thumbnail in preview to edit mode 64/44164/3
authorFrank Nägler <frank.naegler@typo3.org>
Mon, 19 Oct 2015 15:34:00 +0000 (17:34 +0200)
committerFrans Saris <franssaris@gmail.com>
Tue, 20 Oct 2015 07:24:00 +0000 (09:24 +0200)
Since all elements in the preview of content elements in page module
link to edit mode, the preview of Text&Media element should also link
to the edit mode.

Resolves: #70852
Releases: master
Change-Id: I2d12d4c444f1331307a36684974b26ec50d32468
Reviewed-on: https://review.typo3.org/44164
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Benni Mack <benni@typo3.org>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Frans Saris <franssaris@gmail.com>
typo3/sysext/fluid_styled_content/Classes/Hooks/TextmediaPreviewRenderer.php

index 9ba6c35..8e5bf7e 100644 (file)
@@ -47,7 +47,7 @@ class TextmediaPreviewRenderer implements PageLayoutViewDrawItemHookInterface
             }
 
             if ($row['media']) {
-                $itemContent .= $parentObject->thumbCode($row, 'tt_content', 'media') . '<br />';
+                $itemContent .= $parentObject->linkEditContent($parentObject->getThumbCodeUnlinked($row, 'tt_content', 'media'), $row) . '<br />';
 
                 $fileReferences = BackendUtility::resolveFileReferences('tt_content', 'media', $row);