mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 06:43:32 +00:00
If no sort order is specified, use the cookie if available.
This commit is contained in:
parent
b9dc656311
commit
0b2fdac733
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user