[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
|
||||
)
|
||||
|
||||
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"),
|
||||
},
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue