I have an autocomplete field for a country taxonomy and type the following:
United States, Australia/Oceania
The autocomplete for both of these terms happens as expected. However, as the slash and characters following it are typed, the autocomplete continues to be for just 'Australia' as the returned list contains both the term 'Australia' and 'Australia/Oceania'.
If I continue to type:
United States, Australia/Oceania, China
I get no autocomplete for the term after the slash.
I have confirmed that the autocomplete callback is not getting anything that happens after the slash suggesting that the menu system is treating it as a different path.
The function Drupal.ACDB.prototype.search in autocomplete.js to invoking Drupal.encodeURIComponent in drupal.js to prepare the text in the field for searching.
The autocomplete system should be able to accommodate terms that contain a slash.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | taxonomy.pages_.inc_.patch | 602 bytes | terencelee |
| autocomplete-problem.png | 10.7 KB | Anonymous (not verified) |
Comments
Comment #1
terencelee commentedThis bug is a duplicate of http://drupal.org/node/93854
Comment #2
terencelee commentedHere's a patch for this issue based on bec's comment (http://drupal.org/node/93854#comment-778286)
Comment #3
terencelee commentedComment #4
dave reidPlease provided patches in #93854: Allow autocompletion requests to include slashes. Let's keep this closed because it is a duplicate.