]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix for bug 204560: display alias in long listing.
authormyk%mozilla.org <>
Tue, 5 Aug 2003 07:31:19 +0000 (07:31 +0000)
committermyk%mozilla.org <>
Tue, 5 Aug 2003 07:31:19 +0000 (07:31 +0000)
Fix by GavinS <bugzilla@chimpychompy.org>.
r=myk, a=myk

long_list.cgi
template/en/default/bug/show-multiple.html.tmpl

index 08bc6679fe61566b190c094e57b9e5989bce02f3..1f8126d19f9eb42ccd7c5154a6480eb7a320ebf0 100755 (executable)
@@ -44,6 +44,7 @@ my $cgi = Bugzilla->cgi;
 my $generic_query = "
   SELECT 
     bugs.bug_id, 
+    IFNULL(bugs.alias,''), 
     products.name, 
     bugs.version, 
     bugs.rep_platform,
@@ -82,7 +83,7 @@ foreach my $bug_id (split(/[:,]/, $buglist)) {
     my %bug;
     my @row = FetchSQLData();
 
-    foreach my $field ("bug_id", "product", "version", "rep_platform",
+    foreach my $field ("bug_id", "alias", "product", "version", "rep_platform",
                        "op_sys", "bug_status", "resolution", "priority",
                        "bug_severity", "component", "assigned_to", "reporter",
                        "bug_file_loc", "short_desc", "target_milestone",
index 8bf02a0997a1c2a2fc1938ddd4c6eb51782d236c..bda5e4f91209864b3789cc97d2613e181abac2f2 100644 (file)
@@ -58,6 +58,9 @@
       <td>
         <b>[% terms.Bug %]#:</b>
         <a href="show_bug.cgi?id=[% bug.bug_id %]">[% bug.bug_id %]</a>
+        [% IF Param("usebugaliases") AND bug.alias %]  
+          ([% bug.alias FILTER html %])
+        [% END %]
       </td>
       [% PROCESS cell attr = { description => "Product",
                                name => "product" } %]