fix small issue in addChild

This commit is contained in:
Graham Knop 2009-02-06 01:04:27 +00:00
parent 653fea0aa6
commit ede922e060

View file

@ -73,7 +73,7 @@ sub addChild {
# Check if it is possible to add a child to this asset. If not add it as a sibling of this asset.
if (length($self->get("lineage")) >= 252) {
$self->session->errorHandler->warn('Tried to add child to asset "'.$self->getId.'" which is already on the deepest level. Adding it as a sibling instead.');
return $self->getParent->addChild($properties, $id, $now);
return $self->getParent->addChild($properties, $id, $now, $options);
}
my $lineage = $self->get("lineage").$self->getNextChildRank;
$self->{_hasChildren} = 1;