Преглед изворни кода

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

Jeremy Stretch пре 3 недеља
родитељ
комит
50d1d0a023
1 измењених фајлова са 2 додато и 0 уклоњено
  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 %}
 {% if customfield.type == 'integer' and value is not None %}
   {{ value }}
+{% elif customfield.type == 'decimal' and value is not None %}
+  {{ value }}
 {% elif customfield.type == 'longtext' and value %}
   {{ value|markdown }}
 {% elif customfield.type == 'boolean' and value == True %}