mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
Fix state patch api search by external id (#4495)
This commit is contained in:
parent
f7ccf01426
commit
61e83ed808
@ -138,7 +138,7 @@ class StateAPIEndpoint(BaseAPIView):
|
||||
serializer = StateSerializer(state, data=request.data, partial=True)
|
||||
if serializer.is_valid():
|
||||
if (
|
||||
str(request.data.get("external_id"))
|
||||
request.data.get("external_id")
|
||||
and (state.external_id != str(request.data.get("external_id")))
|
||||
and State.objects.filter(
|
||||
project_id=project_id,
|
||||
|
Loading…
Reference in New Issue
Block a user