- 🇦🇺Australia pandaski
Unfortunately, this issue is still available with Drupal 9.4.* and above.
Steps to reproduce:
1. Install a vanilla Drupal 9.4.* or above.
2. Create a content type and a taxonomy vocabulary - "tags" for example
3. Add a new field "free tags" for example - "Entity reference field" to Step 2 taxonomy vocabulary and Allow the number of values "unlimited"
4. Check "Create referenced entities if they don't already exist"
5. Choose "Autocomplete (Tags style)" in "Manage form display"
6. Type/Copy 测试, 测试1 in the "tag" field then save the node - the tag is separated as expected
7. Type/Copy 测试,测试1,测试2 in the "tag" field then save the node - the tag is not separated - Status changed to Active
almost 2 years ago 1:25am 13 February 2023 - 🇳🇿New Zealand quietone
@pandaski, thanks for the steps to reproduce.
I have updated the Issue Summary to add the steps to reproduce, starting from a standard install. I used the info provided in #33.
- 🇦🇺Australia pandaski
There is a change record "drupal_implode_tags() and drupal_explode_tags() replaced with Drupal\Component\Utility\Tags class"
https://www.drupal.org/node/2212099 →
With function here for Drupal 9 and 10
https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Component%21Util...
and
https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Component%21Util...
$regexp = '%(?:^|,|、|,\ *)("(?>[^"]*)(?>""[^"]* )*"|(?: [^",|、|,]*))%xu'; // From comment 10
The above regex looks still good at testing.
- 🇪🇸Spain penyaskito Seville 💃, Spain 🇪🇸, UTC+2 🇪🇺
Looking at core\misc\autocomplete.es6.js, if you go to autocompleteSplitValues you'll see a hardcoded ",", so I guess this is still an issue.
- 🇳🇿New Zealand quietone
@penyaskito, thanks for commenting. This was discussed in a bugsmash group triage meeting with Pandaski. catch and myself. catch noted that the replacement for JQuery UI autocomplete should be checked to see if it has the same problem. 📌 Provide a new library to replace jQuery UI autocomplete Needs work . I have updated the other issue.