Skip to content

Commit

Permalink
refactore logix
Browse files Browse the repository at this point in the history
  • Loading branch information
devketanpro committed Dec 11, 2024
1 parent 881bd7c commit 1c3b595
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/planning/planning/planning.py
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,7 @@ def _create_update_assignment(
assignment["name"] = planning["name"] if not translated_value and translated_name else translated_name

# If the coverage assignee has been changed and workflow status is active
if original.get("workflow_status") == WORKFLOW_STATE.ACTIVE and self.is_coverage_assignment_modified(
if original.get("workflow_status") != WORKFLOW_STATE.DRAFT and self.is_coverage_assignment_modified(
updates, original_assignment
):
assigned_to["state"] = ASSIGNMENT_WORKFLOW_STATE.ASSIGNED
Expand Down

0 comments on commit 1c3b595

Please sign in to comment.