setVersionLock needs to be done only for tags

This commit is contained in:
Doug Bell 2010-11-10 14:04:36 -06:00
parent ab18af37ef
commit 3ce9198220
2 changed files with 2 additions and 1 deletions

View file

@ -2827,6 +2827,7 @@ sub www_addSave {
$object->url(undef);
# More version tag stuff
$object->setVersionLock;
$object->setAutoCommitTag($workingTag) if (defined $autoCommitId);
$oldWorking->setWorking if $oldWorking;
@ -3045,6 +3046,7 @@ sub www_editSave {
});
# More version tag stuff
$object->setVersionLock;
$object->setAutoCommitTag($workingTag) if (defined $autoCommitId);
$oldWorking->setWorking if $oldWorking;

View file

@ -102,7 +102,6 @@ sub addRevision {
my $newVersion = WebGUI::Asset->newById($session, $self->getId, $now);
$newVersion->setSkipNotification if ($options->{skipNotification});
$newVersion->updateHistory("created revision");
$newVersion->setVersionLock;
$newVersion->update(\%mergedProperties);
return $newVersion;