[WEB-4722] fix: fixed draft state update #7663
This commit is contained in:
parent
f2fabff10a
commit
3b3bd3e54e
1 changed files with 3 additions and 1 deletions
|
|
@ -172,12 +172,14 @@ class WorkspaceDraftIssueViewSet(BaseViewSet):
|
||||||
{"error": "Issue not found"}, status=status.HTTP_404_NOT_FOUND
|
{"error": "Issue not found"}, status=status.HTTP_404_NOT_FOUND
|
||||||
)
|
)
|
||||||
|
|
||||||
|
project_id = request.data.get("project_id", issue.project_id)
|
||||||
|
|
||||||
serializer = DraftIssueCreateSerializer(
|
serializer = DraftIssueCreateSerializer(
|
||||||
issue,
|
issue,
|
||||||
data=request.data,
|
data=request.data,
|
||||||
partial=True,
|
partial=True,
|
||||||
context={
|
context={
|
||||||
"project_id": request.data.get("project_id", None),
|
"project_id": project_id,
|
||||||
"cycle_id": request.data.get("cycle_id", "not_provided"),
|
"cycle_id": request.data.get("cycle_id", "not_provided"),
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue