fixed issue with getSortOrder and rating

This commit is contained in:
Doug Bell 2009-06-05 17:31:39 +00:00
parent cbe138d16e
commit 1de7439056

View file

@ -950,6 +950,10 @@ sub getSortBy {
my $self = shift;
my $scratchSortBy = $self->getId."_sortBy";
my $sortBy = $self->session->scratch->get($scratchSortBy) || $self->getValue("sortBy");
# XXX: This should be fixed in an upgrade and in the definition, NOT HERE
if ( $sortBy eq "rating" ) {
$sortBy = "threadRating";
}
return $sortBy;
}