mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
fix: parent issue search
This commit is contained in:
parent
cd69b06e5e
commit
0cd6d9d570
@ -221,6 +221,10 @@ class IssueSearchEndpoint(BaseAPIView):
|
||||
issue = Issue.objects.get(pk=issue_id)
|
||||
issues = issues.filter(
|
||||
~Q(pk=issue_id), ~Q(pk=issue.parent_id), parent__isnull=True
|
||||
).exclude(
|
||||
pk__in=Issue.objects.filter(parent__isnull=False).values_list(
|
||||
"parent_id", flat=True
|
||||
)
|
||||
)
|
||||
if blocker_blocked_by == "true" and issue_id:
|
||||
issues = issues.filter(blocker_issues=issue_id, blocked_issues=issue_id)
|
||||
|
Loading…
Reference in New Issue
Block a user