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?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bharat.kelotra’s picture

This 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.

bharat.kelotra’s picture

Here is the patch for the above issue. I have tested it on one of my site and it is working.

bharat.kelotra’s picture

Status: Active » Needs review