summaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2016-10-14 03:58:37 +0200
committerDavid Lawrence <dkl@mozilla.com>2016-10-14 03:58:49 +0200
commitcc3141625e4c87387259c38e4ab5f56820621768 (patch)
tree56f1fca73b16c7381c5dd91919d1030d66caf49b /Bugzilla/WebService
parent4337c8d79654e4e16696c6ff567f8cc61276bbde (diff)
downloadbugzilla-cc3141625e4c87387259c38e4ab5f56820621768.tar.gz
bugzilla-cc3141625e4c87387259c38e4ab5f56820621768.tar.xz
Bug 1309487 - include longdescs.count in result for /rest/bug
Diffstat (limited to 'Bugzilla/WebService')
-rw-r--r--Bugzilla/WebService/Bug.pm4
1 files changed, 4 insertions, 0 deletions
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;
}