]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 641519: userAutocomplete is not compatible with Bugzilla configured to use "local...
authorRandy Reddekopp <shadarap@hotmail.com>
Tue, 19 Apr 2011 13:25:52 +0000 (15:25 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Tue, 19 Apr 2011 13:25:52 +0000 (15:25 +0200)
r/a=mkanat

js/field.js

index 9d0f346ef51918cfabe677b465f8b618d7503ce6..bd5c3b4c86f79021b123f77ad87e7b7784c708b2 100644 (file)
@@ -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"}
             ]
         };