[BUGFIX] selicon_field does not create thumbnails 48/47648/6
authorStefan Froemken <froemken@gmail.com>
Wed, 13 Apr 2016 15:19:33 +0000 (17:19 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 24 Apr 2016 11:47:29 +0000 (13:47 +0200)
commit97103f357f668e09e793190395155e72ed06eaf9
tree31cd7a2cc02c1552b2735092748d17f3d4852fa5
parent1450b10f6e4a96b5fb76158387de8f7178a9e163
[BUGFIX] selicon_field does not create thumbnails

A select field with renderType selectSingle can point to a
foreign_table. If on the foreign_table TCA the ctrl keys
selicon_field and selicon_field_path are set, a single foreign row
can have an "icon" field that is shown to represent this row.

The patch fixes a bug where selicon_field of the own table
instead of the foreign table was used.
Additionally, in master the icon path resolving changed
with #74157 leading to broken icon path in this case. This is
fixed along with a similar change in backend layout code.

Resolves: #75577
Related: #74157
Releases: master, 7.6
Change-Id: I50bac28018b17a61a334aac7d241bcdd96663656
Reviewed-on: https://review.typo3.org/47648
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/backend/Classes/Form/FormDataProvider/AbstractItemProvider.php
typo3/sysext/backend/Classes/View/BackendLayout/DefaultDataProvider.php
typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaSelectItemsTest.php