setVersionLock needs to be done only for tags
This commit is contained in:
parent
ab18af37ef
commit
3ce9198220
2 changed files with 2 additions and 1 deletions
|
|
@ -2827,6 +2827,7 @@ sub www_addSave {
|
||||||
$object->url(undef);
|
$object->url(undef);
|
||||||
|
|
||||||
# More version tag stuff
|
# More version tag stuff
|
||||||
|
$object->setVersionLock;
|
||||||
$object->setAutoCommitTag($workingTag) if (defined $autoCommitId);
|
$object->setAutoCommitTag($workingTag) if (defined $autoCommitId);
|
||||||
$oldWorking->setWorking if $oldWorking;
|
$oldWorking->setWorking if $oldWorking;
|
||||||
|
|
||||||
|
|
@ -3045,6 +3046,7 @@ sub www_editSave {
|
||||||
});
|
});
|
||||||
|
|
||||||
# More version tag stuff
|
# More version tag stuff
|
||||||
|
$object->setVersionLock;
|
||||||
$object->setAutoCommitTag($workingTag) if (defined $autoCommitId);
|
$object->setAutoCommitTag($workingTag) if (defined $autoCommitId);
|
||||||
$oldWorking->setWorking if $oldWorking;
|
$oldWorking->setWorking if $oldWorking;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -102,7 +102,6 @@ sub addRevision {
|
||||||
my $newVersion = WebGUI::Asset->newById($session, $self->getId, $now);
|
my $newVersion = WebGUI::Asset->newById($session, $self->getId, $now);
|
||||||
$newVersion->setSkipNotification if ($options->{skipNotification});
|
$newVersion->setSkipNotification if ($options->{skipNotification});
|
||||||
$newVersion->updateHistory("created revision");
|
$newVersion->updateHistory("created revision");
|
||||||
$newVersion->setVersionLock;
|
|
||||||
$newVersion->update(\%mergedProperties);
|
$newVersion->update(\%mergedProperties);
|
||||||
|
|
||||||
return $newVersion;
|
return $newVersion;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue