[BUGFIX] BackendUtility: Skip rendering thumbnails for anything but files 40/38240/7
authorAndreas Allacher <andreas.allacher@gmx.at>
Thu, 26 Mar 2015 13:26:08 +0000 (14:26 +0100)
committerMorton Jonuschat <m.jonuschat@mojocode.de>
Fri, 13 Nov 2015 19:02:59 +0000 (20:02 +0100)
commit42fa6520e92439cb0cdc3260416f58bdcb33daf6
treeeb3e1011c0ca8c6bada022d230f9c3c53bab086f
parent8be9e6d6e307f33a27643c7e26649fffdcb2be12
[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.

Change-Id: Iedf4b5e5b17d0310811bb862c131cd70e988e72f
Resolves: #66045
Releases: master, 6.2
Reviewed-on: https://review.typo3.org/38240
Reviewed-by: Frank N├Ągler <frank.naegler@typo3.org>
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Tested-by: Daniel Goerz <ervaude@gmail.com>
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
typo3/sysext/backend/Classes/Utility/BackendUtility.php