Bug 250881: Do not set DEFAULT-FORMAT unless standard search is being used
patch by glob r,a=justdave git-svn-id: svn://10.0.0.236/trunk@159045 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user