summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2014-08-14 08:10:37 +0200
committerByron Jones <glob@mozilla.com>2014-08-14 08:10:37 +0200
commit09d11313d8893a61e44b22acf2370d345cd643e2 (patch)
treed566c80523d7d8b491961cfbcbb56cd1b9eeb9cf /Bugzilla
parent34101e9b71fdda0ecde0db61c065677e3ef2b502 (diff)
downloadbugzilla-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.pm6
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 => {