Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Hello,
There is a small issue when searching for a username in autocomplete.
Only usernames that are starting with the keyword are returned.
Here's is a patch that will return usernames that contains the keyword.
Comment | File | Size | Author |
---|---|---|---|
#7 | masquerade-autocomplete.patch | 747 bytes | Ludo.R |
#3 | masquerade-autocomplete.patch | 747 bytes | Ludo.R |
masquerade-autocomplete.patch | 745 bytes | Ludo.R | |
Comments
Comment #1
Ludo.RComment #2
Ludo.RComment #3
Ludo.RSorry,
Previous patch doesn't work as expected.
Try this one instead :
Comment #4
andypostYour patch changes search to
starting with...
as for me this makes no sense because this regression from current functionaly.Comment #5
Ludo.RI'm not sure to understand what you say.
This patch allows searching usernames that contain the keyword rather than starting with the keyword.
Let's say we have a
john.smith
username.Before, if I typed
smith
, I found nothing.With this patch, you would find
john.smith
.Comment #6
andypostbut your batch suggests %s%% whick means starting with
Comment #7
Ludo.ROh, sorry, my mistake.
I inverted the two files.
Here it is :
Comment #8
andypostRe-titled and makes sense so let's get more reviews
Comment #9
andypostthis change should be ported to 7.x first and require review of other mainteiners
Comment #10
deekayen CreditAttribution: deekayen commentedI'll commit stuff that for 7 with no 6 patch, but not the other way around.
Comment #11
apadernoI am closing this feature request, as Drupal 6 is no longer supported. Please re-open it if you would like the feature implemented in the Drupal 7 or 8 version of the module.