From cc3141625e4c87387259c38e4ab5f56820621768 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Fri, 14 Oct 2016 01:58:37 +0000 Subject: Bug 1309487 - include longdescs.count in result for /rest/bug --- Bugzilla/WebService/Bug.pm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Bugzilla/WebService/Bug.pm') diff --git a/Bugzilla/WebService/Bug.pm b/Bugzilla/WebService/Bug.pm index 20a21147d..bbab65137 100644 --- a/Bugzilla/WebService/Bug.pm +++ b/Bugzilla/WebService/Bug.pm @@ -1476,6 +1476,10 @@ sub _bug_to_hash { = [ map { $self->_user_to_hash($_, $params, undef, 'mentors') } @{ $bug->mentors } ]; } + if (filter_wants $params, 'comment_count') { + $item{'comment_count'} = $self->type('int', $bug->comment_count); + } + return \%item; } -- cgit v1.2.3-24-g4f1b