diff options
author | Byron Jones <bjones@mozilla.com> | 2013-09-25 18:17:52 +0200 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2013-09-25 18:17:52 +0200 |
commit | 3d49752f959fd6c2b5e88eef8333b15705614f68 (patch) | |
tree | 6ce6213a7ed74b77a3c8f59463d7d907e9acac65 /Bugzilla/WebService | |
parent | ac5fe08d4f2390f54888a7a8806e829b68b27ec5 (diff) | |
download | bugzilla-3d49752f959fd6c2b5e88eef8333b15705614f68.tar.gz bugzilla-3d49752f959fd6c2b5e88eef8333b15705614f68.tar.xz |
Bug 920060: Bug.search API doesn't return total results
Diffstat (limited to 'Bugzilla/WebService')
-rw-r--r-- | Bugzilla/WebService/Bug.pm | 3 |
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 => [] }; } |