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:
parent
56e7854ae3
commit
5a26e4f2d8
1 changed files with 1 additions and 0 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue