From cde2d370ea2b46e862d4ec2262ea2b2f7520bb4b Mon Sep 17 00:00:00 2001 From: "travis%sedsystems.ca" <> Date: Wed, 16 Feb 2005 01:16:07 +0000 Subject: Bug 189366 : real name columns should fall back to e-mail name Patch by Marc Schumann r=LpSolit,jpeshkin a=justdave --- Bugzilla/Search.pm | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'Bugzilla/Search.pm') diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index 10d9d907a..05cdc21f0 100644 --- a/Bugzilla/Search.pm +++ b/Bugzilla/Search.pm @@ -98,20 +98,17 @@ sub init { &::GetVersionTable(); # First, deal with all the old hard-coded non-chart-based poop. - if (lsearch($fieldsref, 'map_assigned_to.login_name') >= 0 || - lsearch($fieldsref, 'map_assigned_to.realname') >= 0) { + if (grep(/map_assigned_to/, @$fieldsref)) { push @supptables, "profiles AS map_assigned_to"; push @wherepart, "bugs.assigned_to = map_assigned_to.userid"; } - if (lsearch($fieldsref, 'map_reporter.login_name') >= 0 || - lsearch($fieldsref, 'map_reporter.realname') >= 0) { + if (grep(/map_reporter/, @$fieldsref)) { push @supptables, "profiles AS map_reporter"; push @wherepart, "bugs.reporter = map_reporter.userid"; } - if (lsearch($fieldsref, 'map_qa_contact.login_name') >= 0 || - lsearch($fieldsref, 'map_qa_contact.realname') >= 0) { + if (grep(/map_qa_contact/, @$fieldsref)) { push @supptables, "LEFT JOIN profiles map_qa_contact ON bugs.qa_contact = map_qa_contact.userid"; } -- cgit v1.2.3-24-g4f1b