Hand backport a patch from master. Do not cache the parent when adding a child.

This commit is contained in:
Colin Kuskie 2010-01-13 11:16:16 -08:00
parent bf097ac337
commit 86b5157e4d

View file

@ -86,7 +86,6 @@ sub addChild {
$properties->{assetId} = $id;
$properties->{parentId} = $self->getId;
my $temp = WebGUI::Asset->new($session,$properties) || croak "Couldn't create a new $properties->{className} asset!";
$temp->{_parent} = $self;
my $newAsset = $temp->addRevision($properties, $now, $options);
$self->updateHistory("added child ".$id);
$session->http->setStatus(201,"Asset Creation Successful");