]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix for bug 62729, "Add real name capability to bug_list.cgi". Patch by
authorkiko%async.com.br <>
Mon, 4 Nov 2002 08:57:50 +0000 (08:57 +0000)
committerkiko%async.com.br <>
Mon, 4 Nov 2002 08:57:50 +0000 (08:57 +0000)
Toms Baugis, r=kiko, 2xr=joel.

Bugzilla/Search.pm
buglist.cgi
colchange.cgi
template/en/default/list/change-columns.html.tmpl
template/en/default/list/table.html.tmpl

index 38f19c616171e1e431171cfbd7d8267a470fcbc3..2360d95e4d609e832935de18ec169e7429b47318 100644 (file)
@@ -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";
     }
 
index 905d52d63b94aa5092deba6eb64cfbdd12ee86e8..1f91bd32201c1d1380d453affa1ad337f18b8da8 100755 (executable)
@@ -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"          );
index 3d1ea04761aa6ae5ad486302e5f092830be7ff09..2cdf4f630bb6c2c48945fca66a674fdefd494a19 100755 (executable)
@@ -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");
index aae74d019afcfec1744b9372b444ce93704fbefe..fbdc145a9800e108fbc9892577389d2560d5d61c 100644 (file)
@@ -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" } %]
index eb130896135f99ddb10a45af17f9da27af5f6a05..8c79b5d405b02b06bb6ef057ab38bef0ca62e7dc 100644 (file)
     "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 } ,