gracefully handle Collaborations having no lastPostId in the MessageBoard asset
This commit is contained in:
parent
9a45ff4b91
commit
fab70d71c7
2 changed files with 18 additions and 15 deletions
|
|
@ -15,6 +15,7 @@
|
|||
- fixed #12384: Click and drag reordering does not work in IE9
|
||||
- fixed: MessageBoard tolerates Collaboration children not yet having a value for lastPostId
|
||||
- on invalid proceed method in call to editSave, warn and recover rather than run time error
|
||||
- gracefully handle Collaborations having no lastPostId in the MessageBoard asset
|
||||
|
||||
7.10.26
|
||||
- fixed: Template diagnostics when called without a session asset.
|
||||
|
|
|
|||
|
|
@ -129,6 +129,7 @@ sub view {
|
|||
$first = $child;
|
||||
}
|
||||
my %lastPostVars;
|
||||
if( $child->get('lastPostId') ) {
|
||||
my $lastPost = WebGUI::Asset::Wobject::MessageBoard->newByDynamicClass($self->session, $child->get("lastPostId"));
|
||||
if (defined $lastPost) {
|
||||
%lastPostVars = (
|
||||
|
|
@ -145,6 +146,7 @@ sub view {
|
|||
'forum.lastPost.user.isVisitor' => ($lastPost->get("ownerUserId") eq '1')
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
push(@forum_loop, {
|
||||
%lastPostVars,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue