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


git-svn-id: svn://10.0.0.236/trunk@162181 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
justdave%bugzilla.org 2004-09-12 22:19:37 +00:00
parent 65071928ba
commit 4dd169762b

View File

@ -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"});