Commit ee4df197 authored by Byron Jones's avatar Byron Jones

Bug 1048712: comment tagging suggestions always returns a single result

r=sgreen,a=glob
parent 8cb02d65
......@@ -1146,7 +1146,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 => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment