[BUGFIX] Fixes the suggest wizard item click by only returning one value 62/49862/2
authorWiard van Rij <wiard@outlook.com>
Wed, 27 Jul 2016 07:09:30 +0000 (09:09 +0200)
committerFrank Naegler <frank.naegler@typo3.org>
Mon, 5 Sep 2016 07:23:53 +0000 (09:23 +0200)
commit5faa9954d2f45bead574fa62fbf71c949b91138c
tree0e7527a4ae4f91b25e326d6eb0b5ba61de8062e7
parent55a6d31a11ce0f1804266cec55e75473450dde20
[BUGFIX] Fixes the suggest wizard item click by only returning one value

The bug only occurs on cases where the multiple true is defined,
and the user clicks on the element found by the suggest wizard.

This is caused because of a duplicate item insert. The onclick should
only prevent the default action, and not insert/return the item into the
list.

Resolves: #76923
Releases: master, 7.6
Change-Id: Iea53ef266e8d55331f5cd8367a5146582b7fe684
Reviewed-on: https://review.typo3.org/49223
Reviewed-on: https://review.typo3.org/49862
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
typo3/sysext/backend/Resources/Public/JavaScript/FormEngineSuggest.js