summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/field.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/field.js b/js/field.js
index 4150f8ce4..94876059e 100644
--- a/js/field.js
+++ b/js/field.js
@@ -902,7 +902,8 @@ YAHOO.bugzilla.fieldAutocomplete = {
*/
fieldAutoComp.textboxFocusEvent.subscribe( function(){
var sInputValue = YAHOO.util.Dom.get(field).value;
- if( sInputValue.length === 0 ){
+ if( sInputValue.length === 0
+ && YAHOO.bugzilla.field_array[field].length > 0 ){
this.sendQuery(sInputValue);
this.collapseContainer();
this.expandContainer();