[BUGFIX] Suggest wizard for select element does not work when maxitems = 1 72/43672/2
authorStanislas Rolland <typo3@sjbr.ca>
Wed, 30 Sep 2015 21:47:07 +0000 (17:47 -0400)
committerWouter Wolters <typo3@wouterwolters.nl>
Thu, 8 Oct 2015 20:08:23 +0000 (22:08 +0200)
commit8b9a4d4b0330c927bee20ecc65a864888cda25bf
tree12b76f480a4756e5ed9b3585f87447f50d1898f3
parentb4813ddb55ab789ddd13e02234f147a44d2af1ed
[BUGFIX] Suggest wizard for select element does not work when maxitems = 1

Problem: When selecting an item in the suggest wizard, a js error is
raised and the select element is not updated.
Solution: The value provided by FormEngineSuggest may be an integer.
Make it a string before applying a match function.

Resolves: #70238
Releases: master
Change-Id: I9e1944d1def442a36e17980df8696c7f6078747e
Reviewed-on: http://review.typo3.org/43672
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/backend/Resources/Public/JavaScript/FormEngine.js