From ef419c8b7b9c8ced2ef8346234fe814ee36d8589 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Tue, 15 Jun 2010 11:08:50 -0700 Subject: [PATCH] There's no need to special case Posts in Account/Contributions. The view method referes you to the Thread, and if a user has multiple posts in a thread, it links to the Thread multiple times. Also, this fixes bug #11622. --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/Account/Contributions.pm | 6 ------ 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index e7a1ea36b..c92ba6634 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -17,6 +17,7 @@ - fixed #11619: Trash Expired Events not trashing events - fixed #11623: Navigation CSS-id - fixed #11629: WebGUI Collateral Manager = Error + - fixed #11622: Archived CSS entries displayable. 7.9.6 - new checkbox in the asset manager for clearing the package flag on import diff --git a/lib/WebGUI/Account/Contributions.pm b/lib/WebGUI/Account/Contributions.pm index d5e38c671..1a5a59252 100644 --- a/lib/WebGUI/Account/Contributions.pm +++ b/lib/WebGUI/Account/Contributions.pm @@ -200,12 +200,6 @@ sub www_view { my $asset = WebGUI::Asset->newByDynamicClass( $session, $assetId ); my $props = $asset->get; $props->{url} = $asset->getUrl; - if (ref $asset eq "WebGUI::Asset::Post") { - $asset = $asset->getThread; - $props = $asset->get; - $props->{className} = "WebGUI::Asset::Post"; - } - push(@contribs,$props); } my $contribsCount = $p->getRowCount;