summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla')
-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";
}