From ad239c56e07db95abb7d0bf911c17c9fb68e8194 Mon Sep 17 00:00:00 2001 From: "kiko%async.com.br" <> Date: Mon, 4 Nov 2002 08:57:50 +0000 Subject: Fix for bug 62729, "Add real name capability to bug_list.cgi". Patch by Toms Baugis, r=kiko, 2xr=joel. --- Bugzilla/Search.pm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Bugzilla/Search.pm') diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index 38f19c616..2360d95e4 100644 --- a/Bugzilla/Search.pm +++ b/Bugzilla/Search.pm @@ -69,17 +69,20 @@ sub init { my @andlist; # First, deal with all the old hard-coded non-chart-based poop. - if (lsearch($fieldsref, 'map_assigned_to.login_name') >= 0) { + if (lsearch($fieldsref, 'map_assigned_to.login_name') >= 0 || + lsearch($fieldsref, 'map_assigned_to.realname') >= 0) { push @supptables, "profiles AS map_assigned_to"; push @wherepart, "bugs.assigned_to = map_assigned_to.userid"; } - if (lsearch($fieldsref, 'map_reporter.login_name') >= 0) { + if (lsearch($fieldsref, 'map_reporter.login_name') >= 0 || + lsearch($fieldsref, 'map_reporter.realname') >= 0) { push @supptables, "profiles AS map_reporter"; push @wherepart, "bugs.reporter = map_reporter.userid"; } - if (lsearch($fieldsref, 'map_qa_contact.login_name') >= 0) { + if (lsearch($fieldsref, 'map_qa_contact.login_name') >= 0 || + lsearch($fieldsref, 'map_qa_contact.realname') >= 0) { push @supptables, "LEFT JOIN profiles map_qa_contact ON bugs.qa_contact = map_qa_contact.userid"; } -- cgit v1.2.3-24-g4f1b