From: terry%mozilla.org <> Date: Mon, 24 Jan 2000 01:14:09 +0000 (+0000) Subject: Add a way to remove a default query that you may have set. X-Git-Tag: bugzilla-2.12~425 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00a814cd674b14f1ab1d903eb4b7b57a72f0b50a;p=thirdparty%2Fbugzilla.git Add a way to remove a default query that you may have set. --- diff --git a/query.cgi b/query.cgi index 27e7adbfbd..2abb98a420 100755 --- a/query.cgi +++ b/query.cgi @@ -58,7 +58,16 @@ if (defined $::FORM{"GoAheadAndLogIn"}) { confirm_login(); } +if ($::FORM{'nukedefaultquery'}) { + print "Set-Cookie: DEFAULTQUERY= ; path=/; expires=Sun, 30-Jun-80 00:00:00 GMT\n"; + delete $::COOKIE{"DEFAULTQUERY"}; + $::buffer = ""; +} + + +my $userdefaultquery = 1; if (!defined $::COOKIE{"DEFAULTQUERY"}) { + $userdefaultquery = 0; $::COOKIE{"DEFAULTQUERY"} = Param("defaultquery"); } @@ -611,15 +620,23 @@ if ($::COOKIE{'LASTORDER'}) { $deforder = "Reuse same sort as last time"; unshift(@orders, $deforder); } - + +my $defquerytype = $userdefaultquery ? "my" : "the"; + print make_options(\@orders, $deforder); print " - - -
Give me a clue about how to use this form. - + +"; + +if ($userdefaultquery) { + print qq{
Set my default query back to the system default}; +} +print " + +

Give me a clue about how to use this form. +

";