Fix import Story Archive packages with sub-stories.
This commit is contained in:
parent
f5b2b6d4cd
commit
021b7f8fed
3 changed files with 16 additions and 4 deletions
|
|
@ -41,6 +41,9 @@ sub addChild {
|
|||
my $self = shift;
|
||||
my ($properties) = @_;
|
||||
##Allow subclassing
|
||||
if ($properties->{className} eq 'WebGUI::Asset::Wobject::Folder') {
|
||||
return $self->SUPER::addChild(@_);
|
||||
}
|
||||
return undef unless $properties->{className} =~ /^WebGUI::Asset::Story/;
|
||||
my $todayFolder = $self->getFolder;
|
||||
return undef unless $todayFolder;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue