diff options
author | terry%mozilla.org <> | 2000-01-23 04:23:58 +0100 |
---|---|---|
committer | terry%mozilla.org <> | 2000-01-23 04:23:58 +0100 |
commit | b8a79ce28e8155051127872a2370835015cf4dc1 (patch) | |
tree | 6888364ac6fc6cd79739040e994ae0e9cac2ee19 /buglist.cgi | |
parent | 69c4be2d4794b0a8c66baeab5375c5cf3b8ffd9c (diff) | |
download | bugzilla-b8a79ce28e8155051127872a2370835015cf4dc1.tar.gz bugzilla-b8a79ce28e8155051127872a2370835015cf4dc1.tar.xz |
If no sort order is specified, use the cookie if available.
Diffstat (limited to 'buglist.cgi')
-rwxr-xr-x | buglist.cgi | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/buglist.cgi b/buglist.cgi index 488944fb4..2fab69650 100755 --- a/buglist.cgi +++ b/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. |