]> 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:31:50 +0000 (11:31 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Fri, 13 Aug 2010 09:31:50 +0000 (11:31 +0200)
r=pyrzak r=mkanat a=mkanat

js/field.js

index 34f37e39eff9c4dc7853d9a3a8fab2eb19f65b07..a64369d3315a98f20657ac8db24f4ffbfafe3fb3 100644 (file)
@@ -690,8 +690,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 ){