Fix import Story Archive packages with sub-stories.

This commit is contained in:
Colin Kuskie 2009-09-10 08:34:30 -07:00
parent f5b2b6d4cd
commit 021b7f8fed
3 changed files with 16 additions and 4 deletions

View file

@ -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;