summaryrefslogtreecommitdiffstats
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
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.
-rw-r--r--Bugzilla/Search.pm9
-rwxr-xr-xbuglist.cgi3
-rwxr-xr-xcolchange.cgi4
-rw-r--r--template/en/default/list/change-columns.html.tmpl3
-rw-r--r--template/en/default/list/table.html.tmpl3
5 files changed, 18 insertions, 4 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";
}
diff --git a/buglist.cgi b/buglist.cgi
index 905d52d63..1f91bd322 100755
--- a/buglist.cgi
+++ b/buglist.cgi
@@ -370,8 +370,11 @@ DefineColumn("severity" , "bugs.bug_severity" , "Severity"
DefineColumn("priority" , "bugs.priority" , "Priority" );
DefineColumn("platform" , "bugs.rep_platform" , "Platform" );
DefineColumn("owner" , "map_assigned_to.login_name" , "Owner" );
+DefineColumn("owner_realname" , "map_assigned_to.realname" , "Owner" );
DefineColumn("reporter" , "map_reporter.login_name" , "Reporter" );
+DefineColumn("reporter_realname" , "map_reporter.realname" , "Reporter" );
DefineColumn("qa_contact" , "map_qa_contact.login_name" , "QA Contact" );
+DefineColumn("qa_contact_realname", "map_qa_contact.realname" , "QA Contact" );
DefineColumn("status" , "bugs.bug_status" , "State" );
DefineColumn("resolution" , "bugs.resolution" , "Result" );
DefineColumn("summary" , "bugs.short_desc" , "Summary" );
diff --git a/colchange.cgi b/colchange.cgi
index 3d1ea0476..2cdf4f630 100755
--- a/colchange.cgi
+++ b/colchange.cgi
@@ -42,7 +42,8 @@ GetVersionTable();
# The master list not only says what fields are possible, but what order
# they get displayed in.
my @masterlist = ("opendate", "changeddate", "severity", "priority",
- "platform", "owner", "reporter", "status", "resolution",
+ "platform", "owner", "owner_realname", "reporter",
+ "reporter_realname", "status", "resolution",
"product", "component", "version", "os", "votes");
if (Param("usetargetmilestone")) {
@@ -50,6 +51,7 @@ if (Param("usetargetmilestone")) {
}
if (Param("useqacontact")) {
push(@masterlist, "qa_contact");
+ push(@masterlist, "qa_contact_realname");
}
if (Param("usestatuswhiteboard")) {
push(@masterlist, "status_whiteboard");
diff --git a/template/en/default/list/change-columns.html.tmpl b/template/en/default/list/change-columns.html.tmpl
index aae74d019..fbdc145a9 100644
--- a/template/en/default/list/change-columns.html.tmpl
+++ b/template/en/default/list/change-columns.html.tmpl
@@ -34,7 +34,9 @@
"priority" => "Priority",
"platform" => "Hardware",
"owner" => "Owner",
+ "owner_realname" => "Owner Realname",
"reporter" => "Reporter",
+ "reporter_realname" => "Reporter Realname",
"status" => "Status",
"resolution" => "Resolution",
"product" => "Product",
@@ -45,6 +47,7 @@
"keywords" => "Keywords",
"target_milestone" => "Target",
"qa_contact" => "QA Contact",
+ "qa_contact_realname" => "QA Contact Realname",
"status_whiteboard" => "Whiteboard",
"summary" => "Summary (first 60 characters)",
"summaryfull" => "Full Summary" } %]
diff --git a/template/en/default/list/table.html.tmpl b/template/en/default/list/table.html.tmpl
index eb1308961..8c79b5d40 100644
--- a/template/en/default/list/table.html.tmpl
+++ b/template/en/default/list/table.html.tmpl
@@ -38,8 +38,11 @@
"platform" => { maxlength => 3 , title => "Plt" } ,
"status" => { maxlength => 4 } ,
"reporter" => { maxlength => 30 , ellipsis => "..." } ,
+ "reporter_realname" => { maxlength => 20 , ellipsis => "..." } ,
"owner" => { maxlength => 30 , ellipsis => "..." } ,
+ "owner_realname" => { maxlength => 20 , ellipsis => "..." } ,
"qa_contact" => { maxlength => 30 , ellipsis => "..." , title => "QAContact" } ,
+ "qa_contact_realname" => { maxlength => 20 , ellipsis => "..." , title => "QAContact" } ,
"resolution" => { maxlength => 4 } ,
"summary" => { maxlength => 60 , ellipsis => "..." , wrap => 1 } ,
"summaryfull" => { wrap => 1 } ,