Pull fresh copies of the Topic from the db.

This commit is contained in:
Colin Kuskie 2010-06-10 07:42:10 -07:00
parent 05ce650a1a
commit a9bf59f87d

View file

@ -63,9 +63,9 @@ my $storyHandler = {};
STORY: foreach my $name (@characters) {
my $namedStory = $nowFolder->addChild({ className => 'WebGUI::Asset::Story', title => $name, keywords => $name, } );
$storyHandler->{$name} = $namedStory;
$creationDateSth->execute([$now, $namedStory->getId]);
$namedStory->requestAutoCommit;
$storyHandler->{$name} = $namedStory->cloneFromDb;
}
$storyHandler->{bogs}->update({subtitle => 'drinking his food through a straw'});
@ -84,7 +84,9 @@ $topic->update({
});
$versionTag->commit;
addToCleanup($versionTag);
WebGUI::Test->addToCleanup($versionTag);
$topic = $topic->cloneFromDb;
################################################################
#