Skip to content

Commit

Permalink
netbox-community#13909 attached a clonable field multi selection, bug…
Browse files Browse the repository at this point in the history
… fixes
  • Loading branch information
yash-pal1 committed Sep 29, 2023
1 parent c88b396 commit bb7cc60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netbox/utilities/forms/fields/dynamic.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def get_bound_field(self, form, field_name):

if data is not None:
self.choices = [
choice for choice in self.choices if choice[0] in data
choice for choice in self.choices if isinstance(self.choices, str) if choice[0] in data
]

return bound_field
Expand Down

0 comments on commit bb7cc60

Please sign in to comment.