Skip to content

Commit

Permalink
set last task to None after migration if task no longer exists
Browse files Browse the repository at this point in the history
  • Loading branch information
essweine committed Jul 15, 2024
1 parent 3c7da30 commit 91b623c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions SpiffWorkflow/bpmn/util/diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,3 +235,6 @@ def migrate_workflow(diff, workflow, spec, reset_mask=None):
# (for example, in cycle timer). If a task has already been removed from the tree, ignore it.
if task.id in workflow.tasks:
task.reset_branch(None)

if workflow.last_task not in workflow.tasks:
workflow.last_task = None

0 comments on commit 91b623c

Please sign in to comment.