[BUGFIX] selicon_field does not create thumbnails 87/47887/3
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 13:45:00 +0000 (15:45 +0200)
commit489774446aa09aaf283d747c5efc38b5b6ff8266
treebeb3a3bda87cdbfc90490f99ee9f3edc61be5d8e
parenta34eaaf600bdf441495815856626d26fd49328fc
[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.

Resolves: #75577
Releases: master, 7.6
Change-Id: I50bac28018b17a61a334aac7d241bcdd96663656
Reviewed-on: https://review.typo3.org/47887
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/Tests/Unit/Form/FormDataProvider/TcaSelectItemsTest.php