[BUGFIX] Repair TCA thumbnail view 62/47562/2
authorStefan Froemken <froemken@gmail.com>
Mon, 11 Apr 2016 10:18:50 +0000 (12:18 +0200)
committerFrans Saris <franssaris@gmail.com>
Mon, 18 Apr 2016 12:00:54 +0000 (14:00 +0200)
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>
typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php

index 7043982..6571263 100644 (file)
@@ -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