Skip to content

Commit 3b3bd3e

Browse files
[WEB-4722] fix: fixed draft state update #7663
1 parent f2fabff commit 3b3bd3e

File tree

1 file changed

+3
-1
lines changed
  • apps/api/plane/app/views/workspace

1 file changed

+3
-1
lines changed

apps/api/plane/app/views/workspace/draft.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,12 +172,14 @@ def partial_update(self, request, slug, pk):
172172
{"error": "Issue not found"}, status=status.HTTP_404_NOT_FOUND
173173
)
174174

175+
project_id = request.data.get("project_id", issue.project_id)
176+
175177
serializer = DraftIssueCreateSerializer(
176178
issue,
177179
data=request.data,
178180
partial=True,
179181
context={
180-
"project_id": request.data.get("project_id", None),
182+
"project_id": project_id,
181183
"cycle_id": request.data.get("cycle_id", "not_provided"),
182184
},
183185
)

0 commit comments

Comments
 (0)