Bug 641519: userAutocomplete is not compatible with Bugzilla configured to use "local" usernames
r/a=mkanat git-svn-id: svn://10.0.0.236/branches/BUGZILLA-4_0-BRANCH@262196 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
12cc907a4c
commit
e26ee27fe4
@ -1 +1 @@
|
||||
7569
|
||||
7570
|
||||
@ -664,7 +664,7 @@ YAHOO.bugzilla.userAutocomplete = {
|
||||
id : YAHOO.bugzilla.userAutocomplete.counter,
|
||||
params : [ {
|
||||
match : [ decodeURIComponent(enteredText) ],
|
||||
include_fields : [ "email", "real_name" ]
|
||||
include_fields : [ "name", "real_name" ]
|
||||
} ]
|
||||
};
|
||||
var stringified = YAHOO.lang.JSON.stringify(json_object);
|
||||
@ -674,7 +674,7 @@ YAHOO.bugzilla.userAutocomplete = {
|
||||
return stringified;
|
||||
},
|
||||
resultListFormat : function(oResultData, enteredText, sResultMatch) {
|
||||
return ( _escapeHTML(oResultData.real_name) + " (" + _escapeHTML(oResultData.email) + ")");
|
||||
return ( _escapeHTML(oResultData.real_name) + " (" + _escapeHTML(oResultData.name) + ")");
|
||||
},
|
||||
debug_helper : function ( ){
|
||||
/* used to help debug any errors that might happen */
|
||||
@ -693,7 +693,7 @@ YAHOO.bugzilla.userAutocomplete = {
|
||||
resultsList : "result.users",
|
||||
metaFields : { error: "error", jsonRpcId: "id"},
|
||||
fields : [
|
||||
{ key : "email" },
|
||||
{ key : "name" },
|
||||
{ key : "real_name"}
|
||||
]
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user