fixed addRevsion problem

This commit is contained in:
JT Smith 2005-08-17 20:56:06 +00:00
parent f65bcbf74d
commit 9b37deeba2
3 changed files with 30 additions and 2 deletions

View file

@ -68,7 +68,8 @@ sub addRevision {
}
my $newVersion = WebGUI::Asset->new($self->getId, $self->get("className"), $now);
$newVersion->updateHistory("created revision");
$newVersion->update($properties);
$newVersion->update($self->get);
$newVersion->update($properties) if ($properties);
$newVersion->setVersionLock unless ($session{setting}{autoCommit});
return $newVersion;
}