summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2015-09-01 17:18:48 +0200
committerDavid Lawrence <dkl@mozilla.com>2015-09-01 17:19:01 +0200
commit7c39ca2f98f2f5431713ad387849217f12cc03c2 (patch)
treedc6d9c05b522d202c032a76908f63c06e270e62c /js
parentc5c9d675f6f1f121cd4c7aa3e96b99a3884caf88 (diff)
downloadbugzilla-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.js5
-rw-r--r--js/instant-search.js3
2 files changed, 6 insertions, 2 deletions
diff --git a/js/bug.js b/js/bug.js
index 1089bce99..308317c3e 100644
--- a/js/bug.js
+++ b/js/bug.js
@@ -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 : '')
}
};