[BUGFIX] Custom select renderTypes use TcaSelectItems 47/50347/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Sat, 22 Oct 2016 15:46:09 +0000 (17:46 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Mon, 24 Oct 2016 17:48:35 +0000 (19:48 +0200)
commit405b9051aa7fc23d01e5805c43c40b4e361b7772
treeaa3f46a10809e1d41077589836e182698e5ec673
parent57d9a4c36dbc7f2e1afa1ca8dd9972847020d2a6
[BUGFIX] Custom select renderTypes use TcaSelectItems

There are two FormEngine data provider for type=select: TcaSelectItems
for "normal" renderTypes and TcaSelectTreeItems for renderType="selectTree".

While this is hacky in the first place - the data provider should not
depend on renderType at all but only on type, this can not be changed
easily and a real solution is to make "trees" an own type instead, later.

However, if extensions add a new renderType for select at the moment, the
normal TcaSelectItems data provider does not kick in since it is restricted
to the known renderTypes. This is usually not what an extension wants,
typically just the rendering is different while the data providing from
TcaSelectItems is used.

The patch allows this by now blacklisting "selectTree" in TcaSelectItems
instead of whitelisting the known types.

Change-Id: Ic71177e22b191a5abee90a7cfb9871167fe4611e
Resolves: #78381
Releases: master, 7.6
Reviewed-on: https://review.typo3.org/50347
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/backend/Classes/Form/FormDataProvider/TcaSelectItems.php