Jelajahi Sumber

Fixes #21518: Ensure proper display of decimal custom fields with a zero value (#21523)

Jeremy Stretch 2 bulan lalu
induk
melakukan
071d4a63aa
1 mengubah file dengan 2 tambahan dan 0 penghapusan
  1. 2 0
      netbox/utilities/templates/builtins/customfield_value.html

+ 2 - 0
netbox/utilities/templates/builtins/customfield_value.html

@@ -2,6 +2,8 @@
 {% load i18n %}
 {% load i18n %}
 {% if customfield.type == 'integer' and value is not None %}
 {% if customfield.type == 'integer' and value is not None %}
   {{ value }}
   {{ value }}
+{% elif customfield.type == 'decimal' and value is not None %}
+  {{ value }}
 {% elif customfield.type == 'longtext' and value %}
 {% elif customfield.type == 'longtext' and value %}
   {{ value|markdown }}
   {{ value|markdown }}
 {% elif customfield.type == 'boolean' and value == True %}
 {% elif customfield.type == 'boolean' and value == True %}