diff options
author | David Lawrence <dkl@mozilla.com> | 2015-09-01 17:18:48 +0200 |
---|---|---|
committer | David Lawrence <dkl@mozilla.com> | 2015-09-01 17:19:01 +0200 |
commit | 7c39ca2f98f2f5431713ad387849217f12cc03c2 (patch) | |
tree | dc6d9c05b522d202c032a76908f63c06e270e62c /js | |
parent | c5c9d675f6f1f121cd4c7aa3e96b99a3884caf88 (diff) | |
download | bugzilla-7c39ca2f98f2f5431713ad387849217f12cc03c2.tar.gz bugzilla-7c39ca2f98f2f5431713ad387849217f12cc03c2.tar.xz |
Bug 1200610: jsonrpc API requests do not work when "Require API-Key authentication for API requests" is enabled due to missing API tokens
Diffstat (limited to 'js')
-rw-r--r-- | js/bug.js | 5 | ||||
-rw-r--r-- | js/instant-search.js | 3 |
2 files changed, 6 insertions, 2 deletions
@@ -184,7 +184,10 @@ YAHOO.bugzilla.dupTable = { var args = JSON.stringify({ version: "1.1", method: 'MyDashboard.bug_interest_unmark', - params: { bug_ids: bug_ids }, + params: { + bug_ids: bug_ids, + Bugzilla_api_token: (BUGZILLA.api_token ? BUGZILLA.api_token : '') + }, }); var callbacks = { failure: function(res) { diff --git a/js/instant-search.js b/js/instant-search.js index a3f051f2f..8277b97a9 100644 --- a/js/instant-search.js +++ b/js/instant-search.js @@ -151,7 +151,8 @@ YAHOO.bugzilla.instantSearch = { product: YAHOO.bugzilla.instantSearch.getProduct(), summary: query, limit: 20, - include_fields: [ "id", "summary", "status", "resolution", "component" ] + include_fields: [ "id", "summary", "status", "resolution", "component" ], + Bugzilla_api_token : (BUGZILLA.api_token ? BUGZILLA.api_token : '') } }; |