When adding more than one multiple terms like "xxxx, yyy" , e.g "xxx, yyy" and "qqq, zzz", the script removes the quotation mark (") from the existing selected.
The text field gets the value [ xxxx, yyy, "xxx, yyy" ].
If you don't allow user to add terms, then you get an error for trying to add new terms.
I guess this is in the javascript when copying existing and adding the newest selected.

Comments

orjantorang’s picture

Title: problem adding multiple terms with comma separation » own solution

My own solution looks like this:
I've added the following code in
file: content_taxonomy_autocomplete.module
row: 266
function: content_taxonomy_autocomplete_load

     foreach ($array as $key => $value) {
    	   $array[$key] = '"'.$value.'"';
     }

result: [ "qqq, zzz", "xxx, yyy" ]

mh86’s picture

Status: Active » Fixed

hi!

I committed this fix (a bit different, just replacing line 267 with $prefix = count($array) ? '"'. implode('", "', $array) .'", ' : '';). I hope the autocomplete is working now.
Thanks for the report.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.