fix: Collaboration System can now be subclassed and still work with existing Thread and Post assets
This commit is contained in:
parent
8a88823682
commit
65235990a3
3 changed files with 5 additions and 3 deletions
|
|
@ -631,7 +631,7 @@ An asset object to make the parent of this asset.
|
|||
sub setParent {
|
||||
my $self = shift;
|
||||
my $newParent = shift;
|
||||
return 0 unless ($newParent->get("className") eq "WebGUI::Asset::Wobject::Collaboration");
|
||||
return 0 unless ($newParent->isa("WebGUI::Asset::Wobject::Collaboration"));
|
||||
# specify the Asset package here directly because we don't want to use the ruls in WebGUI::Asset::Post, as they don't fit for Threads.
|
||||
return $self->WebGUI::Asset::setParent($newParent);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue