From ec424897784365714b08bf58174f572b1948d54c Mon Sep 17 00:00:00 2001 From: Stefan Froemken <froemken@gmail.com> Date: Mon, 11 Apr 2016 12:18:50 +0200 Subject: [PATCH] [BUGFIX] Repair TCA thumbnail view With activated thumbnail option in ctrl section of a TCA table configuration the thumbnails are not rendered. Resolves: #75496 Releases: master,7.6 Change-Id: I8ef40ffe300bf14474a3575d6fef4802b26c42e1 Reviewed-on: https://review.typo3.org/47562 Reviewed-by: Daniel Goerz <ervaude@gmail.com> Tested-by: Daniel Goerz <ervaude@gmail.com> Reviewed-by: Frans Saris <franssaris@gmail.com> Tested-by: Frans Saris <franssaris@gmail.com> --- .../recordlist/Classes/RecordList/DatabaseRecordList.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php b/typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php index 7043982e6839..6571263cba12 100644 --- a/typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php +++ b/typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php @@ -943,7 +943,9 @@ class DatabaseRecordList extends AbstractDatabaseRecordList trim($row[$thumbsCol]) && preg_match('/(^|(.*(;|,)?))' . $thumbsCol . '(((;|,).*)|$)/', $visibleColumns) === 1 ) { - $theData[$fCol] .= '<br />' . $this->thumbCode($row, $table, $thumbsCol); + $thumbCode = '<br />' . $this->thumbCode($row, $table, $thumbsCol); + $theData[$fCol] .= $thumbCode; + $theData['__label'] .= $thumbCode; } if (isset($GLOBALS['TCA'][$table]['ctrl']['languageField']) && $row[$GLOBALS['TCA'][$table]['ctrl']['languageField']] != 0 -- GitLab