Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

[WEB-4722] fix: fixed draft state update #7663

Vamsi Krishna3b3bd3e54ef9
diff --git a/apps/api/plane/app/views/workspace/draft.py b/apps/api/plane/app/views/workspace/draft.py
index a5e61d6b47..e4b032725b 100644
--- a/apps/api/plane/app/views/workspace/draft.py
+++ b/apps/api/plane/app/views/workspace/draft.py
@@ -172,12 +172,14 @@ class WorkspaceDraftIssueViewSet(BaseViewSet):
{"error": "Issue not found"}, status=status.HTTP_404_NOT_FOUND
)
+ project_id = request.data.get("project_id", issue.project_id)
+
serializer = DraftIssueCreateSerializer(
issue,
data=request.data,
partial=True,
context={
- "project_id": request.data.get("project_id", None),
+ "project_id": project_id,
"cycle_id": request.data.get("cycle_id", "not_provided"),
},
)