summaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService/Bug.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla/WebService/Bug.pm')
-rw-r--r--Bugzilla/WebService/Bug.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/Bugzilla/WebService/Bug.pm b/Bugzilla/WebService/Bug.pm
index 8461b3d97..a107da923 100644
--- a/Bugzilla/WebService/Bug.pm
+++ b/Bugzilla/WebService/Bug.pm
@@ -524,6 +524,9 @@ sub search {
my $search = new Bugzilla::Search(%options);
my ($data) = $search->data;
+ # BMO if the caller only wants the count, that's all we need to return
+ return $data if $params->{count_only};
+
if (!scalar @$data) {
return { bugs => [] };
}