Commit 2b18077d authored by Frank Becker's avatar Frank Becker Committed by Max Kanat-Alexander

Bug 675517: Add "count" to the return value of Bug.comments in the WebService

r=mkanat, a=mkanat
parent 72839930
...@@ -303,6 +303,7 @@ sub _translate_comment { ...@@ -303,6 +303,7 @@ sub _translate_comment {
is_private => $self->type('boolean', $comment->is_private), is_private => $self->type('boolean', $comment->is_private),
text => $self->type('string', $comment->body_full), text => $self->type('string', $comment->body_full),
attachment_id => $self->type('int', $attach_id), attachment_id => $self->type('int', $attach_id),
count => $self->type('int', $comment->count),
}; };
} }
...@@ -1488,6 +1489,11 @@ C<int> The ID of the bug that this comment is on. ...@@ -1488,6 +1489,11 @@ C<int> The ID of the bug that this comment is on.
C<int> If the comment was made on an attachment, this will be the C<int> If the comment was made on an attachment, this will be the
ID of that attachment. Otherwise it will be null. ID of that attachment. Otherwise it will be null.
=item count
C<int> The number of the comment local to the bug. The Description is 0,
comments start with 1.
=item text =item text
C<string> The actual text of the comment. C<string> The actual text of the comment.
...@@ -1543,6 +1549,8 @@ that id. ...@@ -1543,6 +1549,8 @@ that id.
=item In Bugzilla B<4.0>, the C<author> return value was renamed to =item In Bugzilla B<4.0>, the C<author> return value was renamed to
C<creator>. C<creator>.
=item C<count> was added to the return value in Bugzilla B<5.0>.
=back =back
=back =back
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment