diff options
author | bugreport%peshkin.net <> | 2004-07-12 14:07:33 +0200 |
---|---|---|
committer | bugreport%peshkin.net <> | 2004-07-12 14:07:33 +0200 |
commit | 5414dfb90d011ce314bb04e7363a931cb4558291 (patch) | |
tree | 969b32d0dab60c9c356376468634390b2b3df5ea | |
parent | e06f52663e5bec7db2bf165fc7bffa2b495841da (diff) | |
download | bugzilla-5414dfb90d011ce314bb04e7363a931cb4558291.tar.gz bugzilla-5414dfb90d011ce314bb04e7363a931cb4558291.tar.xz |
Bug 250881: Do not set DEFAULT-FORMAT unless standard search is being used
patch by glob
r,a=justdave
-rwxr-xr-x | query.cgi | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -410,8 +410,9 @@ if (!($cgi->param('query_format') || $cgi->param('format'))) { } } -# Set cookie from format unless it's a report -if ($vars->{'format'} !~ /^report-/i) { +# Set cookie to current format as default, but only if the format +# one that we should remember. +if (grep { $_ eq $vars->{'format'} } qw(specific advanced)) { $cgi->send_cookie(-name => 'DEFAULTFORMAT', -value => $vars->{'format'}, -expires => "Fri, 01-Jan-2038 00:00:00 GMT"); |