[BUGFIX] TCA:Suggest wizard doesn't work for select with maxitems=1 70/4270/13
authorStanislas Rolland <typo3@sjbr.ca>
Mon, 25 Feb 2013 07:39:07 +0000 (02:39 -0500)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Sun, 5 May 2013 12:08:17 +0000 (14:08 +0200)
commit77333a44aeb634fb0041de0604cee33ffef13563
tree673f71040364a58924152d6a853b07bc3fa17c44
parent2bb9cb370f77adab29d964120316952b92bf19c9
[BUGFIX] TCA:Suggest wizard doesn't work for select with maxitems=1

For select fields with maxitems = 1, the suggest wizard does
display, but you cannot select an item and transfer it to the
selected list. Once you change it to maxitems > 1 everything
works as expected.

Solution: Avoid maxitems = 1 (unique) select fields being rendered as
multiple selector boxes and add JS that is required whenever a suggest
wizard is rendered.

Fixes: #23789
Releases: 4.5, 4.7, 6.0, 6.1, 6.2
Change-Id: I1847c9dbf2fe3b4072743857bb84b8e6b112598b
Reviewed-on: https://review.typo3.org/4270
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
typo3/sysext/backend/Classes/Form/FormEngine.php