From c8447e9f4b7c17ab0e04af34dbd5583e78b23677 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Thu, 29 Jan 2015 17:33:12 +0000 Subject: Bug 1045145: backport upstream bug 726696 to bmo/4.2 to allow use of api keys for authentication --- js/comment-tagging.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'js/comment-tagging.js') diff --git a/js/comment-tagging.js b/js/comment-tagging.js index c110eb00e..3b254cfa8 100644 --- a/js/comment-tagging.js +++ b/js/comment-tagging.js @@ -54,7 +54,11 @@ YAHOO.bugzilla.commentTagging = { return YAHOO.lang.JSON.stringify({ method : "Bug.search_comment_tags", id : YAHOO.bugzilla.commentTagging.counter, - params : [ { query : query, limit : 10 } ] + params : { + Bugzilla_api_token: BUGZILLA.api_token, + query : query, + limit : 10 + } }); }; ac.minQueryLength = this.min_len; @@ -340,6 +344,7 @@ YAHOO.bugzilla.commentTagging = { version: "1.1", method: 'Bug.comments', params: { + Bugzilla_api_token: BUGZILLA.api_token, comment_ids: [ comment_id ], include_fields: [ 'tags' ] } @@ -372,6 +377,7 @@ YAHOO.bugzilla.commentTagging = { version: "1.1", method: 'Bug.update_comment_tags', params: { + Bugzilla_api_token: BUGZILLA.api_token, comment_id: comment_id, add: add, remove: remove -- cgit v1.2.3-24-g4f1b