summaryrefslogtreecommitdiffstats
path: root/Bugzilla/API
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2015-05-11 16:36:15 +0200
committerDavid Lawrence <dkl@mozilla.com>2015-05-11 16:36:15 +0200
commitf805627ee9fcffba9f5a509bba652bfd663c6ae7 (patch)
tree9d2b335d577c461fd815b6bf90c035b17a4df3aa /Bugzilla/API
parente4362dad68b2b9180de14d7683d7645e17206f53 (diff)
downloadbugzilla-f805627ee9fcffba9f5a509bba652bfd663c6ae7.tar.gz
bugzilla-f805627ee9fcffba9f5a509bba652bfd663c6ae7.tar.xz
Bug 1140575: Comment-creation WebService API should allow tags to be specified
r=glob,a=glob
Diffstat (limited to 'Bugzilla/API')
-rw-r--r--Bugzilla/API/1_0/Resource/Bug.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/Bugzilla/API/1_0/Resource/Bug.pm b/Bugzilla/API/1_0/Resource/Bug.pm
index c0be3c730..6a32a687f 100644
--- a/Bugzilla/API/1_0/Resource/Bug.pm
+++ b/Bugzilla/API/1_0/Resource/Bug.pm
@@ -1154,6 +1154,11 @@ sub add_comment {
$bug->add_comment($comment, { isprivate => $params->{is_private},
is_markdown => $params->{is_markdown},
work_time => $params->{work_time} });
+
+ # Add comment tags
+ $bug->set_all({ comment_tags => $params->{comment_tags} })
+ if defined $params->{comment_tags};
+
$bug->update();
my $new_comment_id = $bug->{added_comments}[0]->id;