diff options
-rwxr-xr-x | buglist.cgi | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/buglist.cgi b/buglist.cgi index c3887b6ed..07ca5071c 100755 --- a/buglist.cgi +++ b/buglist.cgi @@ -529,11 +529,14 @@ $fields =~ s/[&?]order=[^&]*//g; $fields =~ s/[&?]cmdtype=[^&]*//g; +my $orderpart; my $oldorder; if (defined $::FORM{'order'} && trim($::FORM{'order'}) ne "") { + $orderpart = "&order=" . url_quote("$::FORM{'order'}"); $oldorder = url_quote(", $::FORM{'order'}"); } else { + $orderpart = ""; $oldorder = ""; } @@ -894,7 +897,7 @@ if ($count > 0) { <A HREF=\"enter_bug.cgi\">Enter New Bug</A> <A HREF=\"colchange.cgi?$::buffer\">Change columns</A>"; if (!$dotweak && $count > 1) { - print " <A HREF=\"buglist.cgi?$fields&tweak=1\">"; + print " <A HREF=\"buglist.cgi?$fields$orderpart&tweak=1\">"; print "Change several bugs at once</A>\n"; } print "</FORM>\n"; |