]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 132929 - buglist.cgi 'long format' button doesn't work
authorbbaetz%student.usyd.edu.au <>
Sat, 23 Mar 2002 09:54:54 +0000 (09:54 +0000)
committerbbaetz%student.usyd.edu.au <>
Sat, 23 Mar 2002 09:54:54 +0000 (09:54 +0000)
r=justdave x2

buglist.cgi

index 9238212a7edfe68f6982ea999e82a51ae5703ba7..747fab520b18bb35322e5fdb59419e96505c0831 100755 (executable)
@@ -1337,6 +1337,7 @@ my $bugproducts = {};
 my $bugstatuses = {};
 
 my @bugs; # the list of records
+my @bugnums; # the list of bug numbers
 
 while (my @row = FetchSQLData()) {
     my $bug = {}; # a record
@@ -1361,6 +1362,7 @@ while (my @row = FetchSQLData()) {
 
     # Add the record to the list.
     push(@bugs, $bug);
+    push(@bugnums, $bug->{id});
 }
 
 # Switch back from the shadow database to the regular database so PutFooter()
@@ -1376,6 +1378,7 @@ SendSQL("USE $::db_name");
 # Define the variables and functions that will be passed to the UI template.
 
 $vars->{'bugs'} = \@bugs;
+$vars->{'buglist'} = join(',', @bugnums);
 $vars->{'columns'} = $columns;
 $vars->{'displaycolumns'} = \@displaycolumns;