summaryrefslogtreecommitdiffstats
path: root/js/instant-search.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/instant-search.js')
-rw-r--r--js/instant-search.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/js/instant-search.js b/js/instant-search.js
index 946f8ccfc..6e8f104f2 100644
--- a/js/instant-search.js
+++ b/js/instant-search.js
@@ -150,10 +150,12 @@ YAHOO.bugzilla.instantSearch = {
product: YAHOO.bugzilla.instantSearch.getProduct(),
summary: query,
limit: 20,
- include_fields: [ "id", "summary", "status", "resolution", "component" ],
- Bugzilla_api_token : (BUGZILLA.api_token ? BUGZILLA.api_token : '')
+ include_fields: [ "id", "summary", "status", "resolution", "component" ]
}
};
+ if (BUGZILLA.api_token) {
+ jsonObject.params.Bugzilla_api_token = BUGZILLA.api_token;
+ }
YAHOO.bugzilla.instantSearch.dataTable.getDataSource().sendRequest(
YAHOO.lang.JSON.stringify(jsonObject),