mirror of
https://github.com/makeplane/plane.git
synced 2026-01-29 01:38:53 -06:00
[WEB-5342] fix: update Issue query to use the correct manager in state checks #8060
This commit is contained in:
@@ -233,7 +233,7 @@ class StateDetailAPIEndpoint(BaseAPIView):
|
||||
)
|
||||
|
||||
# Check for any issues in the state
|
||||
issue_exist = Issue.issue_objects.filter(state=state_id).exists()
|
||||
issue_exist = Issue.objects.filter(state=state_id).exists()
|
||||
|
||||
if issue_exist:
|
||||
return Response(
|
||||
|
||||
@@ -117,7 +117,7 @@ class StateViewSet(BaseViewSet):
|
||||
)
|
||||
|
||||
# Check for any issues in the state
|
||||
issue_exist = Issue.issue_objects.filter(state=pk).exists()
|
||||
issue_exist = Issue.objects.filter(state=pk).exists()
|
||||
|
||||
if issue_exist:
|
||||
return Response(
|
||||
|
||||
Reference in New Issue
Block a user