diff --git a/core/misc/autocomplete.js b/core/misc/autocomplete.js index 5a1c156d0b..076c48a187 100644 --- a/core/misc/autocomplete.js +++ b/core/misc/autocomplete.js @@ -177,12 +177,8 @@ // Remove the current input. terms.pop(); // Add the selected item. - if (ui.item.value.search(',') > 0) { - terms.push('"' + ui.item.value + '"'); - } - else { - terms.push(ui.item.value); - } + terms.push(ui.item.value); + event.target.value = terms.join(', '); // Return false to tell jQuery UI that we've filled in the value already. return false;