Assets need to be committed before adding children to them. This should really be done in addChild to prevent it since it was manually hacked into the CS.

This commit is contained in:
Colin Kuskie 2006-12-22 18:10:27 +00:00
parent 56e7854ae3
commit 5a26e4f2d8

View file

@ -28,6 +28,7 @@ my $node = WebGUI::Asset->getImportNode($session);
my $versionTag = WebGUI::VersionTag->getWorking($session);
$versionTag->set({name=>"Calendar Test"});
my $cal = $node->addChild({className=>'WebGUI::Asset::Wobject::Calendar'});
$versionTag->commit();
# Test for a sane object type
isa_ok($cal, 'WebGUI::Asset::Wobject::Calendar');