rework how validParent works, and where it is checked. Add an explicit check for it in addChild, and remove a bunch of overridden addChild methods.
This commit is contained in:
parent
a8496c4d15
commit
88ec09d279
12 changed files with 78 additions and 110 deletions
|
|
@ -1348,7 +1348,7 @@ sub prepareView {
|
|||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 validParent
|
||||
=head2 valid_parent_classes
|
||||
|
||||
Make sure that the current session asset is a Thread or Post for pasting and adding checks.
|
||||
|
||||
|
|
@ -1356,7 +1356,7 @@ This is a class method.
|
|||
|
||||
=cut
|
||||
|
||||
sub validParent {
|
||||
sub valid_parent_classes {
|
||||
my $class = shift;
|
||||
my $session = shift;
|
||||
return $session->asset->isa('WebGUI::Asset::Post');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue