[BUGFIX] TCA:Suggest wizard doesn't work for select with maxitems=1 12/20512/2
authorStanislas Rolland <typo3@sjbr.ca>
Mon, 25 Feb 2013 07:39:07 +0000 (02:39 -0500)
committerStanislas Rolland <typo3@sjbr.ca>
Wed, 8 May 2013 12:59:15 +0000 (14:59 +0200)
commitace419dfd3ab66f359cdaab60f42a2d73d44cb3f
tree35d160516745ebf9542bfa29efe6a6c7ad21bd76
parent0da3e319d0fe3200d54cf574eec598c889457662
[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
Reviewed-on: https://review.typo3.org/20512
Reviewed-by: Stanislas Rolland
Tested-by: Stanislas Rolland
typo3/sysext/backend/Classes/Form/FormEngine.php