Fix for bug 177099: stored queries ordering and editing were broken after moving…

Fix for bug 177099: stored queries ordering and editing were broken after moving to CGI.pm. They work again now. r=bbaetz
parent f0139c8c
...@@ -236,9 +236,9 @@ my $params = new Bugzilla::CGI($cgi); ...@@ -236,9 +236,9 @@ my $params = new Bugzilla::CGI($cgi);
# Take appropriate action based on user's request. # Take appropriate action based on user's request.
if ($::FORM{'cmdtype'} eq "dorem") { if ($::FORM{'cmdtype'} eq "dorem") {
if ($::FORM{'remaction'} eq "run") { if ($::FORM{'remaction'} eq "run") {
my $query = LookupNamedQuery($::FORM{"namedcmd"}); $::buffer = LookupNamedQuery($::FORM{"namedcmd"});
$vars->{'title'} = "Bug List: $::FORM{'namedcmd'}"; $vars->{'title'} = "Bug List: $::FORM{'namedcmd'}";
$params = new Bugzilla::CGI($query); $params = new Bugzilla::CGI($::buffer);
$order = $params->param('order') || $order; $order = $params->param('order') || $order;
} }
elsif ($::FORM{'remaction'} eq "load") { elsif ($::FORM{'remaction'} eq "load") {
......
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