summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorkiko%async.com.br <>2002-11-04 09:57:50 +0100
committerkiko%async.com.br <>2002-11-04 09:57:50 +0100
commitad239c56e07db95abb7d0bf911c17c9fb68e8194 (patch)
tree389808614d325a278253424b46daa0c407e55df2 /Bugzilla
parentdad7d60d6cec4fae53f8f1c2ab900703f4237729 (diff)
downloadbugzilla-ad239c56e07db95abb7d0bf911c17c9fb68e8194.tar.gz
bugzilla-ad239c56e07db95abb7d0bf911c17c9fb68e8194.tar.xz
Fix for bug 62729, "Add real name capability to bug_list.cgi". Patch by
Toms Baugis, r=kiko, 2xr=joel.
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Search.pm9
1 files changed, 6 insertions, 3 deletions
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";
}