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 /extensions/GuidedBugEntry | |
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 'extensions/GuidedBugEntry')
-rw-r--r-- | extensions/GuidedBugEntry/web/js/guided.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/extensions/GuidedBugEntry/web/js/guided.js b/extensions/GuidedBugEntry/web/js/guided.js index 339a6fc65..98ad6fd17 100644 --- a/extensions/GuidedBugEntry/web/js/guided.js +++ b/extensions/GuidedBugEntry/web/js/guided.js @@ -257,7 +257,8 @@ var product = { id: ++this._counter, params: { names: [productName], - exclude_fields: ['internals', 'milestones'] + exclude_fields: ['internals', 'milestones'], + Bugzilla_api_token : (BUGZILLA.api_token ? BUGZILLA.api_token : '') } } ) @@ -445,7 +446,8 @@ var dupes = { id: ++this._counter, params: { ids: [ bugID ], - cc : ccObject + cc : ccObject, + Bugzilla_api_token: (BUGZILLA.api_token ? BUGZILLA.api_token : '') } }) ); @@ -556,7 +558,8 @@ var dupes = { summary: dupes.getSummary(), limit: 12, include_fields: [ "id", "summary", "status", "resolution", - "update_token", "cc", "component" ] + "update_token", "cc", "component" ], + Bugzilla_api_token: (BUGZILLA.api_token ? BUGZILLA.api_token : '') } }; |