[BUGFIX] BackendUtility: Skip rendering thumbnails for anything but files 09/44709/2
authorMorton Jonuschat <m.jonuschat@mojocode.de>
Fri, 13 Nov 2015 19:17:52 +0000 (20:17 +0100)
committerMorton Jonuschat <m.jonuschat@mojocode.de>
Fri, 13 Nov 2015 19:26:29 +0000 (20:26 +0100)
commitd1fc0198cf758bfc3304673eaa8f42770d2debde
treeb9ec80960f1ea01d7ca72efcdd95f2ea1d864a2b
parent399689de547e5f1b1c65ded286aab98923086eec
[BUGFIX] BackendUtility: Skip rendering thumbnails for anything but files

If the stored value in a group field with type file/file_reference is a
folder the thumbCode() method skips rendering a thumbnail for that
resource. This avoids fatal error as the interface of e.g. a Folder is
different to that of a File, missing the ::isMissing() method.

Resolves: #66045
Releases: master, 6.2
Change-Id: I29b75dec0173cc2423583a9cf42ff56ca81ce7d3
Reviewed-on: https://review.typo3.org/44709
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
typo3/sysext/backend/Classes/Utility/BackendUtility.php