From 55c14f58528b16eee359f984b314b6c27c820e44 Mon Sep 17 00:00:00 2001 From: Graham Knop Date: Mon, 10 Sep 2007 19:38:45 +0000 Subject: [PATCH] fix errors generated when viewing last thread in cs --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/Asset/Post/Thread.pm | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 9a6cb92df..58e6ca48c 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -37,6 +37,7 @@ - fix: Fixed SyncProfileToLDAP workflow activity to allow anonymous snycs - fix: Fixed SyncProfileToLDAP workflow activity to properly sync if RDN does not match DN - fix: SQL Report download link doesn't include form parameters + - fix: Errors generated in webgui.log when viewing last thread 7.4.5 - fix: Apostrophy incorrectly escaped as double quote in some places diff --git a/lib/WebGUI/Asset/Post/Thread.pm b/lib/WebGUI/Asset/Post/Thread.pm index 50a99636a..1484e8a09 100644 --- a/lib/WebGUI/Asset/Post/Thread.pm +++ b/lib/WebGUI/Asset/Post/Thread.pm @@ -265,7 +265,9 @@ sub getNextThread { group by assetData.assetId order by ".$sortBy." ".$sortOrder." "); - $self->{_next} = WebGUI::Asset->new($self->session, $id,$class,$version); + if ($id) { + $self->{_next} = WebGUI::Asset->new($self->session, $id, $class, $version); + } # delete $self->{_next} unless ($self->{_next}->{_properties}{className} =~ /Thread/); }; return $self->{_next};