From: Kohei Yoshino Date: Thu, 8 Nov 2018 18:49:22 +0000 (-0500) Subject: Bug 1505762 - count_only=1 results in error with REST API X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0b28dd58e51c5a7db3d83509d10a13e5f9e00dc;p=thirdparty%2Fbugzilla.git Bug 1505762 - count_only=1 results in error with REST API --- diff --git a/Bugzilla/WebService/Bug.pm b/Bugzilla/WebService/Bug.pm index 5b867d7f8..b5704cb51 100644 --- a/Bugzilla/WebService/Bug.pm +++ b/Bugzilla/WebService/Bug.pm @@ -632,7 +632,7 @@ sub search { return $data; } else { - return { bug_count => $self->type('int', scalar @$data) }; + return { bug_count => $self->type('int', $data) }; } }