[BUGFIX] Link thumbnail in preview to edit mode
[Packages/TYPO3.CMS.git] / 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);