summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Search.pm
diff options
context:
space:
mode:
authortravis%sedsystems.ca <>2005-02-16 02:16:07 +0100
committertravis%sedsystems.ca <>2005-02-16 02:16:07 +0100
commitcde2d370ea2b46e862d4ec2262ea2b2f7520bb4b (patch)
tree747899ea462e682eb2b1ea4091d691bed0c2c0a4 /Bugzilla/Search.pm
parenta1ebb1dc2f70d884adb8c2e308ffc36fde647398 (diff)
downloadbugzilla-cde2d370ea2b46e862d4ec2262ea2b2f7520bb4b.tar.gz
bugzilla-cde2d370ea2b46e862d4ec2262ea2b2f7520bb4b.tar.xz
Bug 189366 : real name columns should fall back to e-mail name
Patch by Marc Schumann <wurblzap@gmail.com> r=LpSolit,jpeshkin a=justdave
Diffstat (limited to 'Bugzilla/Search.pm')
-rw-r--r--Bugzilla/Search.pm9
1 files changed, 3 insertions, 6 deletions
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";
}