From 0b2fdac7335242d48fe7c5f397e3cf3f3a479e74 Mon Sep 17 00:00:00 2001 From: "terry%mozilla.org" Date: Sat, 22 Jan 2000 19:23:58 +0000 Subject: [PATCH] If no sort order is specified, use the cookie if available. --- webtools/bugzilla/buglist.cgi | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/webtools/bugzilla/buglist.cgi b/webtools/bugzilla/buglist.cgi index 488944fb43a1..2fab69650def 100755 --- a/webtools/bugzilla/buglist.cgi +++ b/webtools/bugzilla/buglist.cgi @@ -550,10 +550,14 @@ foreach my $f ("short_desc", "long_desc", "bug_file_loc", $query .= "group by bugs.bug_id\n"; -if (defined $::FORM{'order'} && $::FORM{'order'} ne "") { - if ($::COOKIE{'LASTORDER'} && $::FORM{'order'} =~ /^reuse/i) { +if ($::COOKIE{'LASTORDER'}) { + if ((!$::FORM{'order'}) || $::FORM{'order'} =~ /^reuse/i) { $::FORM{'order'} = url_decode($::COOKIE{'LASTORDER'}); } +} + + +if (defined $::FORM{'order'} && $::FORM{'order'} ne "") { $query .= "order by "; $::FORM{'order'} =~ s/votesum/bugs.votes/; # Silly backwards compatability # hack.