forked from github/plane
fix: project issue search endpoint (#729)
This commit is contained in:
parent
687b05d221
commit
6be775434d
@ -217,9 +217,12 @@ class IssueSearchEndpoint(BaseAPIView):
|
|||||||
project__project_projectmember__member=self.request.user,
|
project__project_projectmember__member=self.request.user,
|
||||||
)
|
)
|
||||||
|
|
||||||
if parent == "true":
|
if parent == "true" and issue_id:
|
||||||
issues = issues.filter(parent__isnull=True)
|
issue = Issue.objects.get(pk=issue_id)
|
||||||
if blocker_blocked_by and issue_id:
|
issues = issues.filter(
|
||||||
|
~Q(pk=issue_id), ~Q(pk=issue.parent_id), parent__isnull=True
|
||||||
|
)
|
||||||
|
if blocker_blocked_by == "true" and issue_id:
|
||||||
issues = issues.filter(blocker_issues=issue_id, blocked_issues=issue_id)
|
issues = issues.filter(blocker_issues=issue_id, blocked_issues=issue_id)
|
||||||
|
|
||||||
return Response(
|
return Response(
|
||||||
|
Loading…
Reference in New Issue
Block a user