Commit 5414dfb9 authored by bugreport%peshkin.net's avatar bugreport%peshkin.net

Bug 250881: Do not set DEFAULT-FORMAT unless standard search is being used

patch by glob r,a=justdave
parent e06f5266
...@@ -410,8 +410,9 @@ if (!($cgi->param('query_format') || $cgi->param('format'))) { ...@@ -410,8 +410,9 @@ if (!($cgi->param('query_format') || $cgi->param('format'))) {
} }
} }
# Set cookie from format unless it's a report # Set cookie to current format as default, but only if the format
if ($vars->{'format'} !~ /^report-/i) { # one that we should remember.
if (grep { $_ eq $vars->{'format'} } qw(specific advanced)) {
$cgi->send_cookie(-name => 'DEFAULTFORMAT', $cgi->send_cookie(-name => 'DEFAULTFORMAT',
-value => $vars->{'format'}, -value => $vars->{'format'},
-expires => "Fri, 01-Jan-2038 00:00:00 GMT"); -expires => "Fri, 01-Jan-2038 00:00:00 GMT");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment