From ad426fa199e4253676006656202831a41f1a7140 Mon Sep 17 00:00:00 2001 From: "bugreport%peshkin.net" Date: Mon, 12 Jul 2004 05:07:33 +0000 Subject: [PATCH] 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 --- mozilla/webtools/bugzilla/query.cgi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mozilla/webtools/bugzilla/query.cgi b/mozilla/webtools/bugzilla/query.cgi index cf601b7166a..bd60e5b6703 100755 --- a/mozilla/webtools/bugzilla/query.cgi +++ b/mozilla/webtools/bugzilla/query.cgi @@ -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");