From 7c39ca2f98f2f5431713ad387849217f12cc03c2 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Tue, 1 Sep 2015 15:18:48 +0000 Subject: Bug 1200610: jsonrpc API requests do not work when "Require API-Key authentication for API requests" is enabled due to missing API tokens --- extensions/EditComments/web/js/editcomments.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'extensions/EditComments') 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 : '') + } }) ); } -- cgit v1.2.3-24-g4f1b