[BUGFIX] TCA:Suggest wizard doesn't work for select with maxitems=1 13/20513/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 13:00:06 +0000 (15:00 +0200)
commit08f3f9bdf034bf3a735570cdf6312b35f451d25f
treeebf9065f45277bb21ed980cb902487741b68e171
parent91498d5eb69c540846765c91d8e68710bcdf1fe6
[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/20513
Reviewed-by: Stanislas Rolland
Tested-by: Stanislas Rolland
typo3/sysext/backend/Classes/Form/FormEngine.php