Explorar o código

#4439: Fix null integer field display

Jeremy Stretch %!s(int64=5) %!d(string=hai) anos
pai
achega
1ffbeba181
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      netbox/templates/inc/custom_fields_panel.html

+ 1 - 1
netbox/templates/inc/custom_fields_panel.html

@@ -15,7 +15,7 @@
                                 <i class="glyphicon glyphicon-remove text-danger" title="False"></i>
                             {% elif field.type == 'url' and value %}
                                 <a href="{{ value }}">{{ value|truncatechars:70 }}</a>
-                            {% elif value %}
+                            {% elif value is not None %}
                                 {{ value }}
                             {% elif field.required %}
                                 <span class="text-warning">Not defined</span>