diff options
-rw-r--r-- | Bugzilla/WebService/Bug.pm | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Bugzilla/WebService/Bug.pm b/Bugzilla/WebService/Bug.pm index 5ce098e74..405f04b0f 100644 --- a/Bugzilla/WebService/Bug.pm +++ b/Bugzilla/WebService/Bug.pm @@ -596,7 +596,14 @@ sub search { 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 ($params->{count_only}) { + if (Bugzilla->usage_mode == USAGE_MODE_XMLRPC) { + return $data; + } + else { + return { bug_count => $data }; + } + } if (!scalar @$data) { return { bugs => [] }; |