From: justdave%bugzilla.org <> Date: Mon, 13 Sep 2004 05:30:45 +0000 (+0000) Subject: Bug 252295: Ensure that the "Edit Search" link goes back to the same form the search... X-Git-Tag: bugzilla-2.18rc3~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=186a658fca8bb7941403dffe4ad4f19f3653f816;p=thirdparty%2Fbugzilla.git 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 --- diff --git a/buglist.cgi b/buglist.cgi index cfdb8b4065..67f63de950 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"});