From 1de74390564107918f6316b873ac6ba54e6066fa Mon Sep 17 00:00:00 2001 From: Doug Bell Date: Fri, 5 Jun 2009 17:31:39 +0000 Subject: [PATCH] fixed issue with getSortOrder and rating --- lib/WebGUI/Asset/Wobject/Collaboration.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/WebGUI/Asset/Wobject/Collaboration.pm b/lib/WebGUI/Asset/Wobject/Collaboration.pm index 0faf8dbc5..1c8e523ae 100644 --- a/lib/WebGUI/Asset/Wobject/Collaboration.pm +++ b/lib/WebGUI/Asset/Wobject/Collaboration.pm @@ -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; }