]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 252295: Ensure that the "Edit Search" link goes back to the same form the search...
authorjustdave%bugzilla.org <>
Mon, 13 Sep 2004 05:30:45 +0000 (05:30 +0000)
committerjustdave%bugzilla.org <>
Mon, 13 Sep 2004 05:30:45 +0000 (05:30 +0000)
r=gerv, a=justdave

buglist.cgi

index cfdb8b4065520f16dbea15c64c6c1289cce72246..67f63de950e184b5c57cb366b988fc55b55b11c8 100755 (executable)
@@ -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"});