Skip to content

Commit 7a63e11

Browse files
committed
#13299: Fix display of empty string values
1 parent dcd3f09 commit 7a63e11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netbox/netbox/models/features.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def get_custom_fields_by_group(self):
236236

237237
for cf in visible_custom_fields:
238238
value = self.custom_field_data.get(cf.name)
239-
if value in (None, []) and cf.ui_visible == CustomFieldUIVisibleChoices.IF_SET:
239+
if value in (None, '', []) and cf.ui_visible == CustomFieldUIVisibleChoices.IF_SET:
240240
continue
241241
value = cf.deserialize(value)
242242
groups[cf.group_name][cf] = value

0 commit comments

Comments
 (0)