diff options
author | terry%mozilla.org <> | 1999-10-12 06:17:17 +0200 |
---|---|---|
committer | terry%mozilla.org <> | 1999-10-12 06:17:17 +0200 |
commit | cffbaf4b373e6781ba0707e617d6bf9e7530ad90 (patch) | |
tree | 9c08036ce1fccfc2f8350729640eaf78061f97eb /buglist.cgi | |
parent | f0726cc722c2de16b19583067020ab4d82e5f9e9 (diff) | |
download | bugzilla-cffbaf4b373e6781ba0707e617d6bf9e7530ad90.tar.gz bugzilla-cffbaf4b373e6781ba0707e617d6bf9e7530ad90.tar.xz |
Sort votes in decreasing order, not increasing.
Diffstat (limited to 'buglist.cgi')
-rwxr-xr-x | buglist.cgi | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/buglist.cgi b/buglist.cgi index 6afbbf12a..cdd5ba077 100755 --- a/buglist.cgi +++ b/buglist.cgi @@ -173,7 +173,7 @@ DefCol("version", "substring(bugs.version, 1, 5)", "Vers", "bugs.version"); DefCol("os", "substring(bugs.op_sys, 1, 4)", "OS", "bugs.op_sys"); DefCol("target_milestone", "bugs.target_milestone", "TargetM", "bugs.target_milestone"); -DefCol("votes", "bugs.votes", "Votes", "bugs.votes"); +DefCol("votes", "bugs.votes", "Votes", "bugs.votes desc"); my @collist; if (defined $::COOKIE{'COLUMNLIST'}) { @@ -530,7 +530,7 @@ foreach my $c (@collist) { $tablestart .= "<TH valign=left>"; } if (defined $::sortkey{$c}) { - $tablestart .= "<A HREF=\"buglist.cgi?$fields&order=$::sortkey{$c}$oldorder\">$::title{$c}</A>"; + $tablestart .= "<A HREF=\"buglist.cgi?$fields&order=" . url_quote($::sortkey{$c}) . "$oldorder\">$::title{$c}</A>"; } else { $tablestart .= $::title{$c}; } @@ -636,6 +636,7 @@ print " if (defined $::FORM{'debug'}) { print "<PRE>$query</PRE>\n"; + print "::FORM{'order'} is <pre>$::FORM{'order'}</pre>\n"; } if ($toolong) { |