Restore the other fields that a CS can be sorted on, from the thread table. Fixes bug #11614.

This commit is contained in:
Colin Kuskie 2010-06-07 15:03:03 -07:00
parent c9dc084ed6
commit c4e85d8b44
2 changed files with 2 additions and 1 deletions

View file

@ -10,6 +10,7 @@
- fixed #11595: Orphaned data in inbox_messageState - fixed #11595: Orphaned data in inbox_messageState
- fixed AddressBook feedback for missing fields. - fixed AddressBook feedback for missing fields.
- fixed #11606: Syndicated Content feed returns a relative link - fixed #11606: Syndicated Content feed returns a relative link
- fixed #11614: Forums: Sort Fields
7.9.6 7.9.6
- new checkbox in the asset manager for clearing the package flag on import - new checkbox in the asset manager for clearing the package flag on import

View file

@ -1164,7 +1164,7 @@ sub getThreadsPaginator {
$sortBy =~ s/^\w+\.//; $sortBy =~ s/^\w+\.//;
# Sort by the thread rating instead of the post rating. other places don't care about threads. # Sort by the thread rating instead of the post rating. other places don't care about threads.
$sortBy = $sortBy eq 'rating' ? 'threadRating' : $sortBy; $sortBy = $sortBy eq 'rating' ? 'threadRating' : $sortBy;
if (! WebGUI::Utility::isIn($sortBy, qw/userDefined1 userDefined2 userDefined3 userDefined4 userDefined5 title lineage revisionDate creationDate karmaRank threadRating/)) { if (! WebGUI::Utility::isIn($sortBy, qw/userDefined1 userDefined2 userDefined3 userDefined4 userDefined5 title lineage revisionDate creationDate karmaRank threadRating views replies lastPostDate/)) {
$sortBy = 'revisionDate'; $sortBy = 'revisionDate';
} }
if ($sortBy eq 'assetId' || $sortBy eq 'revisionDate') { if ($sortBy eq 'assetId' || $sortBy eq 'revisionDate') {