[BUGFIX] Suggest wizard inserts correct items again 78/48278/2
authorMarkus Klein <markus.klein@typo3.org>
Tue, 24 May 2016 13:41:03 +0000 (15:41 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Tue, 24 May 2016 13:49:34 +0000 (15:49 +0200)
The patch for #70463 introduced a regression which caused
added elements to include HTML markup.

Resolves: #76286
Releases: master, 7.6
Change-Id: I596602b03fd65f2e8d95171c2f2f79ff57006f14
Reviewed-on: https://review.typo3.org/48278
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/backend/Resources/Public/JavaScript/FormEngineSuggest.js

index 0274929..4330090 100644 (file)
@@ -41,7 +41,7 @@ define(['jquery', 'jquery/autocomplete'], function ($) {
                                }
 
                                var formEl = $searchField.data('fieldname');
-                               var labelEl = $('<div>').text($(element).data('label'));
+                               var labelEl = $('<div>').html($(element).data('label'));
                                var label = labelEl.text();
                                var title = labelEl.find('span').attr('title') || label;
                                setFormValueFromBrowseWin(formEl, insertData, label, title);