mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-28 03:16:25 -06:00
Fixes #13859: Fix valid response when no matching choice values are found
This commit is contained in:
parent
fd1b8c958c
commit
20ddfb8bb9
@ -82,7 +82,10 @@ class CustomFieldChoiceSetViewSet(NetBoxModelViewSet):
|
|||||||
data = [
|
data = [
|
||||||
{'id': c[0], 'display': c[1]} for c in page
|
{'id': c[0], 'display': c[1]} for c in page
|
||||||
]
|
]
|
||||||
return self.get_paginated_response(data)
|
else:
|
||||||
|
data = []
|
||||||
|
|
||||||
|
return self.get_paginated_response(data)
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user