From 95bc2e126bf551c71d4994be7f40d4e1d96ff94b Mon Sep 17 00:00:00 2001 From: "bbaetz%acm.org" Date: Sat, 22 Nov 2003 03:32:51 +0000 Subject: [PATCH] =?UTF-8?q?Bug=20220642=20-=20Setting=20pref=20'maxusermat?= =?UTF-8?q?ches'=20to=20'0'=20does=20not=20search=20for=20all=20possibilit?= =?UTF-8?q?ies.=20Patch=20by=20Andreas=20Ho=C2=B6fle,=20r=3Dbbaetz,=20a=3D?= =?UTF-8?q?myk?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://10.0.0.236/trunk@149623 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/Bugzilla/User.pm | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/mozilla/webtools/bugzilla/Bugzilla/User.pm b/mozilla/webtools/bugzilla/Bugzilla/User.pm index 32e624913db..e75976e598c 100644 --- a/mozilla/webtools/bugzilla/Bugzilla/User.pm +++ b/mozilla/webtools/bugzilla/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