Commit 63790559 authored by bbaetz%acm.org's avatar bbaetz%acm.org

Bug 220642 - Setting pref 'maxusermatches' to '0' does not search for all

possibilities. Patch by Andreas Ho¶fle, r=bbaetz, a=myk
parent 295f2e43
......@@ -558,12 +558,17 @@ sub match_field {
});
}
my $limit = 0;
if (&::Param('maxusermatches')) {
$limit = &::Param('maxusermatches') + 1;
}
for my $query (@queries) {
my $users = match(
$query, # match string
(&::Param('maxusermatches') || 0) + 1, # match limit
1 # exclude_disabled
$query, # match string
$limit, # match limit
1 # exclude_disabled
);
# skip confirmation for exact matches
......
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