forked from github/plane
chore: parent can be added to issue (#3665)
This commit is contained in:
parent
489555f788
commit
d901277a20
@ -247,12 +247,7 @@ class IssueSearchEndpoint(BaseAPIView):
|
|||||||
if parent == "true" and issue_id:
|
if parent == "true" and issue_id:
|
||||||
issue = Issue.issue_objects.get(pk=issue_id)
|
issue = Issue.issue_objects.get(pk=issue_id)
|
||||||
issues = issues.filter(
|
issues = issues.filter(
|
||||||
~Q(pk=issue_id), ~Q(pk=issue.parent_id), parent__isnull=True
|
~Q(pk=issue_id), ~Q(pk=issue.parent_id), ~Q(parent_id=issue_id))
|
||||||
).exclude(
|
|
||||||
pk__in=Issue.issue_objects.filter(
|
|
||||||
parent__isnull=False
|
|
||||||
).values_list("parent_id", flat=True)
|
|
||||||
)
|
|
||||||
if issue_relation == "true" and issue_id:
|
if issue_relation == "true" and issue_id:
|
||||||
issue = Issue.issue_objects.get(pk=issue_id)
|
issue = Issue.issue_objects.get(pk=issue_id)
|
||||||
issues = issues.filter(
|
issues = issues.filter(
|
||||||
|
Loading…
Reference in New Issue
Block a user