autocomplete: fix underscore-to-space conversion in usernames.
Didn't handle names with multiple underscores correctly.
This commit is contained in:
@@ -421,7 +421,7 @@ Autocomplete.user_source = function(term, resp, prefix) {
|
|||||||
resp($.map(data, function(user) {
|
resp($.map(data, function(user) {
|
||||||
return {
|
return {
|
||||||
type: "user",
|
type: "user",
|
||||||
label: user.name.replace(/_/, " "),
|
label: user.name.replace(/_/g, " "),
|
||||||
value: prefix + user.name,
|
value: prefix + user.name,
|
||||||
level: user.level_string
|
level: user.level_string
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user