Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redone work items don't update previous work item property #2164

Open
anehx opened this issue Feb 13, 2024 · 0 comments
Open

Redone work items don't update previous work item property #2164

anehx opened this issue Feb 13, 2024 · 0 comments

Comments

@anehx
Copy link
Contributor

anehx commented Feb 13, 2024

If a work item with the status redo is being reopened by the workflow, the property previous_work_item is not properly updated which results in a wrong workflow tree.

We should update the previous_work_item on the reopened work item when we reopen it here:

if work_items_to_redo.exists():
for work_item in work_items_to_redo:
work_item.deadline = task.calculate_deadline()
work_item.modified_by_user = user.username
work_item.modified_by_group = user.username
work_item.status = models.WorkItem.STATUS_READY
work_item.save()
work_items.append(work_item)
continue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant