Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
For my case, I have a CRM with a bunch of users with the first name "John"
I want to tag "John Doe". If I type "John D" there are no auto complete options, if I just type "John", it shows a list of some Johns, but not John Doe (its too far down the list).
It doesn't seem like the autocomplete works if you type a space after the first word/name. How would I go about resolving this so I can include the space in my tagging?
Comment | File | Size | Author |
---|---|---|---|
#2 | autocomplete_dont_work_with_space-2541616-11178277.patch | 520 bytes | bharat.kelotra |
|
Comments
Comment #1
bharat.kelotra CreditAttribution: bharat.kelotra as a volunteer commentedThis issue is happening because the search term is getting URL encoded, so the space gets converted to %20. e.g. When you type "John" the search string which reaches AJAX call back is "John". But when you search "John D" then the search string which reaches the ajax callback is "John%20D" which don't outputs any result.
I will provide a patch for this.
Comment #2
bharat.kelotra CreditAttribution: bharat.kelotra as a volunteer commentedHere is the patch for the above issue. I have tested it on one of my site and it is working.
Comment #3
bharat.kelotra CreditAttribution: bharat.kelotra as a volunteer commented