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.

fix backend (#5875)

Ketan Sharmae866571e04ac
diff --git a/apiserver/plane/app/views/inbox/base.py b/apiserver/plane/app/views/inbox/base.py
index 59a9cf955e..dcae298d66 100644
--- a/apiserver/plane/app/views/inbox/base.py
+++ b/apiserver/plane/app/views/inbox/base.py
@@ -312,8 +312,8 @@ class InboxIssueViewSet(BaseViewSet):
"issue__labels__id",
distinct=True,
filter=(
- ~Q(labels__id__isnull=True)
- & Q(labels__deleted_at__isnull=True)
+ ~Q(issue__labels__id__isnull=True)
+ & Q(issue__labels__deleted_at__isnull=True)
),
),
Value([], output_field=ArrayField(UUIDField())),
@@ -322,8 +322,8 @@ class InboxIssueViewSet(BaseViewSet):
ArrayAgg(
"issue__assignees__id",
distinct=True,
- filter=~Q(assignees__id__isnull=True)
- & Q(assignees__member_project__is_active=True),
+ filter=~Q(issue__assignees__id__isnull=True)
+ & Q(issue__assignees__member_project__is_active=True),
),
Value([], output_field=ArrayField(UUIDField())),
),