Commit 1a4d36f7 authored by justdave%bugzilla.org's avatar justdave%bugzilla.org

Bug 252295: Ensure that the "Edit Search" link goes back to the same form the…

Bug 252295: Ensure that the "Edit Search" link goes back to the same form the search was created on when running a saved search that was saved before we had multiple search forms. r=gerv, a=justdave
parent 180adb43
......@@ -308,6 +308,14 @@ if ($::FORM{'cmdtype'} eq "dorem") {
$vars->{'searchtype'} = "saved";
$params = new Bugzilla::CGI($::buffer);
$order = $params->param('order') || $order;
# backward compatibility hack: if the saved query doesn't say which
# form was used to create it, assume it was on the advanced query
# form - see bug 252295
if (!$params->param('query_format')) {
$params->param('query_format', 'advanced');
$::buffer = $params->query_string;
}
}
elsif ($::FORM{'remaction'} eq "runseries") {
$::buffer = LookupSeries($::FORM{"series_id"});
......
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