]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 583884: User autocomplete fills in empty values instead of the autocomplete value
authorFrédéric Buclin <LpSolit@gmail.com>
Fri, 13 Aug 2010 09:33:28 +0000 (11:33 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Fri, 13 Aug 2010 09:33:28 +0000 (11:33 +0200)
r=pyrzak r=mkanat a=mkanat

js/field.js

index 3de4a69ab3393bf980f943f359e5226ff05ab524..18a8d3aa46519c5b653ee8e7c9ea77dcd2d9403e 100644 (file)
@@ -684,8 +684,12 @@ YAHOO.bugzilla.userAutocomplete = {
         this.dataSource.maxCacheEntries = 5;
         this.dataSource.responseSchema = {
             resultsList : "result.users",
-            metaFields : { error: "error", jsonRpcId: "id"}
-        };    
+            metaFields : { error: "error", jsonRpcId: "id"},
+            fields : [
+                { key : "email" },
+                { key : "real_name"}
+            ]
+        };
     },
     init : function( field, container, multiple ) {
         if( this.dataSource == null ){