From 56f34b67fefe19d98dcdb0ea0597e338d20f3a87 Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Fri, 13 Aug 2010 11:31:50 +0200 Subject: Bug 583884: User autocomplete fills in empty values instead of the autocomplete value r=pyrzak r=mkanat a=mkanat --- js/field.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/js/field.js b/js/field.js index 34f37e39e..a64369d33 100644 --- a/js/field.js +++ b/js/field.js @@ -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 ){ -- cgit v1.2.3-24-g4f1b