diff options
author | Randy Reddekopp <shadarap@hotmail.com> | 2011-04-19 15:25:52 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2011-04-19 15:25:52 +0200 |
commit | 15111b79d161ba89bd969387657c28603d24d689 (patch) | |
tree | ac30c04d0fb48f295f823de0be6f01233367d7dc | |
parent | 52f6e88a37ab39c0f3f639c3cb24dde740f47584 (diff) | |
download | bugzilla-15111b79d161ba89bd969387657c28603d24d689.tar.gz bugzilla-15111b79d161ba89bd969387657c28603d24d689.tar.xz |
Bug 641519: userAutocomplete is not compatible with Bugzilla configured to use "local" usernames
r/a=mkanat
-rw-r--r-- | js/field.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/field.js b/js/field.js index 9d0f346ef..bd5c3b4c8 100644 --- a/js/field.js +++ b/js/field.js @@ -683,7 +683,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); @@ -693,7 +693,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 */ @@ -712,7 +712,7 @@ YAHOO.bugzilla.userAutocomplete = { resultsList : "result.users", metaFields : { error: "error", jsonRpcId: "id"}, fields : [ - { key : "email" }, + { key : "name" }, { key : "real_name"} ] }; |