Fix for bug 62729, "Add real name capability to bug_list.cgi". Patch by

Toms Baugis, r=kiko, 2xr=joel.
This commit is contained in:
kiko%async.com.br 2002-11-04 00:57:56 +00:00
Родитель eaaf4c7d79
Коммит fdcb2002d6
5 изменённых файлов: 18 добавлений и 4 удалений

Просмотреть файл

@ -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";
}

Просмотреть файл

@ -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" );

Просмотреть файл

@ -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");

Просмотреть файл

@ -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" } %]

Просмотреть файл

@ -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 } ,