summaryrefslogtreecommitdiffstats
path: root/buglist.cgi
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 /buglist.cgi
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 'buglist.cgi')
-rwxr-xr-xbuglist.cgi12
1 files changed, 9 insertions, 3 deletions
diff --git a/buglist.cgi b/buglist.cgi
index d748b0757..f6869b349 100755
--- a/buglist.cgi
+++ b/buglist.cgi
@@ -475,11 +475,17 @@ DefineColumn("bug_severity" , "bugs.bug_severity" , "Severity"
DefineColumn("priority" , "bugs.priority" , "Priority" );
DefineColumn("rep_platform" , "bugs.rep_platform" , "Hardware" );
DefineColumn("assigned_to" , "map_assigned_to.login_name" , "Assignee" );
-DefineColumn("assigned_to_realname", "map_assigned_to.realname" , "Assignee" );
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" );
+if ($format->{'extension'} eq 'html') {
+ DefineColumn("assigned_to_realname", "CASE WHEN map_assigned_to.realname = '' THEN map_assigned_to.login_name ELSE map_assigned_to.realname END", "Assignee" );
+ DefineColumn("reporter_realname" , "CASE WHEN map_reporter.realname = '' THEN map_reporter.login_name ELSE map_reporter.realname END", "Reporter" );
+ DefineColumn("qa_contact_realname" , "CASE WHEN map_qa_contact.realname = '' THEN map_qa_contact.login_name ELSE map_qa_contact.realname END", "QA Contact");
+} else {
+ DefineColumn("assigned_to_realname", "map_assigned_to.realname" , "Assignee" );
+ DefineColumn("reporter_realname" , "map_reporter.realname" , "Reporter" );
+ DefineColumn("qa_contact_realname" , "map_qa_contact.realname" , "QA Contact" );
+}
DefineColumn("bug_status" , "bugs.bug_status" , "Status" );
DefineColumn("resolution" , "bugs.resolution" , "Result" );
DefineColumn("short_short_desc" , "bugs.short_desc" , "Summary" );