diff options
author | 2003-11-22 11:32:51 +0000 | |
---|---|---|
committer | 2003-11-22 11:32:51 +0000 | |
commit | 63790559f094b702688365ed12242526ce3ff969 (patch) | |
tree | 0c140494bb5c74544f0f4954f11bac17721e14e0 | |
parent | Fix for bug 226469: labels the votes column in the RDF buglist output as cont... (diff) | |
download | bugzilla-63790559f094b702688365ed12242526ce3ff969.tar.gz bugzilla-63790559f094b702688365ed12242526ce3ff969.tar.bz2 bugzilla-63790559f094b702688365ed12242526ce3ff969.zip |
Bug 220642 - Setting pref 'maxusermatches' to '0' does not search for all
possibilities.
Patch by Andreas Ho¶fle, r=bbaetz, a=myk
-rw-r--r-- | Bugzilla/User.pm | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm index 32e624913..e75976e59 100644 --- a/Bugzilla/User.pm +++ b/Bugzilla/User.pm @@ -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 |