getLastPost in Thread.pm should not cast its data, but allow the asset to determine its own type.
This commit is contained in:
parent
55893c0050
commit
93f583d069
2 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue