When a version tag is deleted, delete it's workflow instance, if it exists. Fixes bug #11544.
This commit is contained in:
parent
e6ab688751
commit
a03e13ea4d
2 changed files with 5 additions and 0 deletions
|
|
@ -3,6 +3,7 @@
|
|||
- fixed #11557: Shop credit deduction calculated incorrectly
|
||||
- fixed #11561: PayDriver_Cash - password help
|
||||
- fixed #11541: running workflows screen
|
||||
- fixed #11544: VersionTag Workflows with missing Version Tags run forever
|
||||
|
||||
7.9.4
|
||||
- We're shipping underscore.js now for its suite of extremely handy utility
|
||||
|
|
|
|||
|
|
@ -640,6 +640,10 @@ sub rollback {
|
|||
$outputSub->(sprintf $i18n->get('Rolling back %s'), $revision->getTitle);
|
||||
$revision->purgeRevision;
|
||||
}
|
||||
my $instance = $self->getWorkflowInstance;
|
||||
if ($instance) {
|
||||
$instance->delete;
|
||||
}
|
||||
$session->db->write("delete from assetVersionTag where tagId=?", [$tagId]);
|
||||
$self->clearWorking;
|
||||
return 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue