diff options
author | Byron Jones <glob@mozilla.com> | 2014-08-14 08:10:37 +0200 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2014-08-14 08:10:37 +0200 |
commit | 09d11313d8893a61e44b22acf2370d345cd643e2 (patch) | |
tree | d566c80523d7d8b491961cfbcbb56cd1b9eeb9cf /Bugzilla | |
parent | 34101e9b71fdda0ecde0db61c065677e3ef2b502 (diff) | |
download | bugzilla-09d11313d8893a61e44b22acf2370d345cd643e2.tar.gz bugzilla-09d11313d8893a61e44b22acf2370d345cd643e2.tar.xz |
Bug 1048712: comment tagging suggestions always returns a single result
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/WebService/Bug.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Bugzilla/WebService/Bug.pm b/Bugzilla/WebService/Bug.pm index 405f04b0f..f3e075fd2 100644 --- a/Bugzilla/WebService/Bug.pm +++ b/Bugzilla/WebService/Bug.pm @@ -1229,7 +1229,11 @@ sub search_comment_tags { my $query = $params->{query}; $query // ThrowCodeError('param_required', { param => 'query' }); - my $limit = detaint_natural($params->{limit}) || 7; + my $limit = $params->{limit} || 7; + detaint_natural($limit) + || ThrowCodeError('param_must_be_numeric', { param => 'limit', + function => 'Bug.search_comment_tags' }); + my $tags = Bugzilla::Comment::TagWeights->match({ WHERE => { |