summaryrefslogtreecommitdiffstats
path: root/extensions/EditComments
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 /extensions/EditComments
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 'extensions/EditComments')
-rw-r--r--extensions/EditComments/web/js/editcomments.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/extensions/EditComments/web/js/editcomments.js b/extensions/EditComments/web/js/editcomments.js
index 91763fa62..a4e3014d5 100644
--- a/extensions/EditComments/web/js/editcomments.js
+++ b/extensions/EditComments/web/js/editcomments.js
@@ -47,7 +47,9 @@ function editComment(comment_count, comment_id) {
version: "1.1",
method: "EditComments.comments",
id: comment_id,
- params: { comment_ids: [ comment_id ] }
+ params: { comment_ids: [ comment_id ],
+ Bugzilla_api_token : (BUGZILLA.api_token ? BUGZILLA.api_token : '')
+ }
})
);
}