fix CS sorting by rating

This commit is contained in:
Graham Knop 2007-09-20 11:15:44 +00:00
parent 1b93bc56b8
commit 40d1751913
2 changed files with 5 additions and 0 deletions

View file

@ -17,6 +17,7 @@
- fix: Data Form tab delimited export doesn't obey field order
- fix: Extra <a> tags inserted when viewing only Wiki page
- fix: incorrect links generated for Event related links
- fix: Sort Collaboration System threads correctly by rating
7.4.6
- Prevent Help index from trying to link to non-existant documentation

View file

@ -938,6 +938,10 @@ sub getThreadsPaginator {
}
$sortBy ||= "dateUpdated";
$sortOrder ||= "desc";
# Sort by the thread rating instead of the post rating. other places don't care about threads.
if ($sortBy eq 'rating') {
$sortBy = 'threadRating';
}
my $sql = "
select