[BUGFIX] Fixes the suggest wizard item click by only returning one value 23/49223/4
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:16 +0000 (09:23 +0200)
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

Resolves: #76923
Releases: master, 7.6
Change-Id: Iea53ef266e8d55331f5cd8367a5146582b7fe684
Reviewed-on: https://review.typo3.org/49223
Reviewed-by: Alexander Stehlik <alexander.stehlik@gmail.com>
Tested-by: Alexander Stehlik <alexander.stehlik@gmail.com>
Reviewed-by: Benjamin Serfhos <serfhos@gmail.com>
Tested-by: Benjamin Serfhos <serfhos@gmail.com>
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>

index 4330090..0a09352 100644 (file)
@@ -102,7 +102,6 @@ define(['jquery', 'jquery/autocomplete'], function ($) {
                // set up the events
                $containerElement.on('click', '.autocomplete-suggestion-link', function(evt) {
-                       insertValue(this);