Skip to content
Permalink
Browse files

getLastPost in Thread.pm should not cast its data, but allow the asse…

…t to determine its own type.
  • Loading branch information...
perlDreamer committed Aug 28, 2012
1 parent 55893c0 commit 93f583d06977d9aaf05145aac0ee608e9d34fe81
Showing with 2 additions and 1 deletion.
  1. +1 −0 docs/changelog/7.x.x.txt
  2. +1 −1 lib/WebGUI/Asset/Post/Thread.pm
@@ -1,6 +1,7 @@
7.10.27
- fixed #12379: userImport documentation error
- fixed #12382: WebGUI::Crud does not work with all form types
- fixed: Threads with no posts return the wrong lastReply data.

7.10.26
- fixed: Template diagnostics when called without a session asset.
@@ -450,7 +450,7 @@ sub getLastPost {
my $lastPostId = $self->get("lastPostId");
my $lastPost;
if ($lastPostId) {
$lastPost = WebGUI::Asset::Post->new($self->session, $lastPostId);
$lastPost = WebGUI::Asset->newByDynamicClass($self->session, $lastPostId);
}
return $lastPost if (defined $lastPost);
return $self;

0 comments on commit 93f583d

Please sign in to comment.
You can’t perform that action at this time.