Bug 220642 - Setting pref 'maxusermatches' to '0' does not search for all
possibilities. Patch by Andreas Ho¶fle, r=bbaetz, a=myk git-svn-id: svn://10.0.0.236/trunk@149623 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user