Bug 132929 - buglist.cgi 'long format' button doesn't work

r=justdave x2
parent 93ccfd5d
...@@ -1337,6 +1337,7 @@ my $bugproducts = {}; ...@@ -1337,6 +1337,7 @@ my $bugproducts = {};
my $bugstatuses = {}; my $bugstatuses = {};
my @bugs; # the list of records my @bugs; # the list of records
my @bugnums; # the list of bug numbers
while (my @row = FetchSQLData()) { while (my @row = FetchSQLData()) {
my $bug = {}; # a record my $bug = {}; # a record
...@@ -1361,6 +1362,7 @@ while (my @row = FetchSQLData()) { ...@@ -1361,6 +1362,7 @@ while (my @row = FetchSQLData()) {
# Add the record to the list. # Add the record to the list.
push(@bugs, $bug); push(@bugs, $bug);
push(@bugnums, $bug->{id});
} }
# Switch back from the shadow database to the regular database so PutFooter() # Switch back from the shadow database to the regular database so PutFooter()
...@@ -1376,6 +1378,7 @@ SendSQL("USE $::db_name"); ...@@ -1376,6 +1378,7 @@ SendSQL("USE $::db_name");
# Define the variables and functions that will be passed to the UI template. # Define the variables and functions that will be passed to the UI template.
$vars->{'bugs'} = \@bugs; $vars->{'bugs'} = \@bugs;
$vars->{'buglist'} = join(',', @bugnums);
$vars->{'columns'} = $columns; $vars->{'columns'} = $columns;
$vars->{'displaycolumns'} = \@displaycolumns; $vars->{'displaycolumns'} = \@displaycolumns;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment