From a78e354bbe0e4aded2a1d08e29351b90cf068b13 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" Date: Tue, 9 Aug 2011 22:47:58 +0000 Subject: [PATCH] Bug 675517: Add "count" to the return value of Bug.comments in the WebService r=mkanat, a=mkanat git-svn-id: svn://10.0.0.236/trunk@262634 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/.bzrrev | 2 +- mozilla/webtools/bugzilla/Bugzilla/WebService/Bug.pm | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/mozilla/webtools/bugzilla/.bzrrev b/mozilla/webtools/bugzilla/.bzrrev index a93317b36b7..2f0bb6d0316 100644 --- a/mozilla/webtools/bugzilla/.bzrrev +++ b/mozilla/webtools/bugzilla/.bzrrev @@ -1 +1 @@ -7911 \ No newline at end of file +7912 \ No newline at end of file diff --git a/mozilla/webtools/bugzilla/Bugzilla/WebService/Bug.pm b/mozilla/webtools/bugzilla/Bugzilla/WebService/Bug.pm index c21c8bbe8cc..9064f6a14e9 100644 --- a/mozilla/webtools/bugzilla/Bugzilla/WebService/Bug.pm +++ b/mozilla/webtools/bugzilla/Bugzilla/WebService/Bug.pm @@ -303,6 +303,7 @@ sub _translate_comment { is_private => $self->type('boolean', $comment->is_private), text => $self->type('string', $comment->body_full), attachment_id => $self->type('int', $attach_id), + count => $self->type('int', $comment->count), }; } @@ -1488,6 +1489,11 @@ C The ID of the bug that this comment is on. C If the comment was made on an attachment, this will be the ID of that attachment. Otherwise it will be null. +=item count + +C The number of the comment local to the bug. The Description is 0, +comments start with 1. + =item text C The actual text of the comment. @@ -1543,6 +1549,8 @@ that id. =item In Bugzilla B<4.0>, the C return value was renamed to C. +=item C was added to the return value in Bugzilla B<5.0>. + =back =back