summaryrefslogtreecommitdiffstats
path: root/buglist.cgi
diff options
context:
space:
mode:
authorjustdave%bugzilla.org <>2004-09-13 07:19:37 +0200
committerjustdave%bugzilla.org <>2004-09-13 07:19:37 +0200
commit1a4d36f7b67c996fe5be9707b03857f62adfdaab (patch)
tree767d0a686dfafe6edafdf3bd213c1b7f5b938eca /buglist.cgi
parent180adb43d41ccc8862112cc7418226f03f5e2189 (diff)
downloadbugzilla-1a4d36f7b67c996fe5be9707b03857f62adfdaab.tar.gz
bugzilla-1a4d36f7b67c996fe5be9707b03857f62adfdaab.tar.xz
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
Diffstat (limited to 'buglist.cgi')
-rwxr-xr-xbuglist.cgi8
1 files changed, 8 insertions, 0 deletions
diff --git a/buglist.cgi b/buglist.cgi
index 23fb92ec5..9cde2dcf8 100755
--- a/buglist.cgi
+++ b/buglist.cgi
@@ -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"});