From: Kohei Yoshino Date: Wed, 31 Oct 2018 12:43:26 +0000 (-0400) Subject: Bug 1503182 - Fix data type of native bug count API return value X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7178a225ce7746cc2aa054480c40ee973cc82ab8;p=thirdparty%2Fbugzilla.git Bug 1503182 - Fix data type of native bug count API return value --- diff --git a/Bugzilla/WebService/Bug.pm b/Bugzilla/WebService/Bug.pm index c1b98856b..5b867d7f8 100644 --- a/Bugzilla/WebService/Bug.pm +++ b/Bugzilla/WebService/Bug.pm @@ -632,7 +632,7 @@ sub search { return $data; } else { - return { bug_count => $data }; + return { bug_count => $self->type('int', scalar @$data) }; } }