]> 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:19:37 +0000 (05:19 +0000)
committerjustdave%bugzilla.org <>
Mon, 13 Sep 2004 05:19:37 +0000 (05:19 +0000)
r=gerv, a=justdave

buglist.cgi

index 23fb92ec5523e88f05a51476729e9c9fef2eba47..9cde2dcf80550609933b8199ccfe630f427a70b5 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"});