almost done fixing addRevision changes

This commit is contained in:
Doug Bell 2010-11-16 11:18:41 -06:00
parent 3ce9198220
commit 1866c593ea
25 changed files with 186 additions and 199 deletions

View file

@ -554,12 +554,20 @@ sub www_ajaxEditPointSave {
unless $asset && $asset->canEdit;
$asset = $asset->addRevision;
}
my $errors = $asset->processAjaxEditForm;
# Commit!
if ( $asset->getAutoCommitWorkflowId ) {
if ( $self->hasBeenCommitted) {
my $tag = WebGUI::VersionTag->create( $session, {
workflowId => $asset->getAutoCommitWorkflowId,
} );
$asset->update({
tagId => $tag->getId,
status => "pending",
});
$asset->setVersionLock;
$asset->requestAutoCommit;
}
else {