Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions apiserver/plane/api/views/intake.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,16 +109,6 @@ def post(self, request, slug, project_id):
{"error": "Invalid priority"}, status=status.HTTP_400_BAD_REQUEST
)

# Create or get state
state, _ = State.objects.get_or_create(
name="Triage",
group="triage",
description="Default state for managing all Intake Issues",
project_id=project_id,
color="#ff7700",
is_triage=True,
)

# create an issue
issue = Issue.objects.create(
name=request.data.get("issue", {}).get("name"),
Expand All @@ -128,7 +118,6 @@ def post(self, request, slug, project_id):
),
priority=request.data.get("issue", {}).get("priority", "none"),
project_id=project_id,
state=state,
)

# create an intake issue
Expand Down
4 changes: 3 additions & 1 deletion apiserver/plane/api/views/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,9 @@ def patch(self, request, slug, pk):
ProjectSerializer(project).data, cls=DjangoJSONEncoder
)

intake_view = request.data.get("inbox_view", project.intake_view)
intake_view = request.data.get(
"inbox_view", request.data.get("intake_view", project.intake_view)
)

if project.archived_at:
return Response(
Expand Down
Loading