When a version tag is deleted, delete it's workflow instance, if it exists. Fixes bug #11544.

This commit is contained in:
Colin Kuskie 2010-05-10 10:38:15 -07:00
parent e6ab688751
commit a03e13ea4d
2 changed files with 5 additions and 0 deletions

View file

@ -3,6 +3,7 @@
- fixed #11557: Shop credit deduction calculated incorrectly - fixed #11557: Shop credit deduction calculated incorrectly
- fixed #11561: PayDriver_Cash - password help - fixed #11561: PayDriver_Cash - password help
- fixed #11541: running workflows screen - fixed #11541: running workflows screen
- fixed #11544: VersionTag Workflows with missing Version Tags run forever
7.9.4 7.9.4
- We're shipping underscore.js now for its suite of extremely handy utility - We're shipping underscore.js now for its suite of extremely handy utility

View file

@ -640,6 +640,10 @@ sub rollback {
$outputSub->(sprintf $i18n->get('Rolling back %s'), $revision->getTitle); $outputSub->(sprintf $i18n->get('Rolling back %s'), $revision->getTitle);
$revision->purgeRevision; $revision->purgeRevision;
} }
my $instance = $self->getWorkflowInstance;
if ($instance) {
$instance->delete;
}
$session->db->write("delete from assetVersionTag where tagId=?", [$tagId]); $session->db->write("delete from assetVersionTag where tagId=?", [$tagId]);
$self->clearWorking; $self->clearWorking;
return 1; return 1;