From 1c3b595283a3386c374a91195458089b360c67da Mon Sep 17 00:00:00 2001 From: devketanpro Date: Wed, 11 Dec 2024 14:43:08 +0530 Subject: [PATCH] refactore logix --- server/planning/planning/planning.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/planning/planning/planning.py b/server/planning/planning/planning.py index c407e3f7f..14de66af6 100644 --- a/server/planning/planning/planning.py +++ b/server/planning/planning/planning.py @@ -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