From 071d4a63aa67a39ac826981eeb7c6fa6543326b9 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Fri, 27 Feb 2026 12:13:53 -0500 Subject: [PATCH] Fixes #21518: Ensure proper display of decimal custom fields with a zero value (#21523) --- netbox/utilities/templates/builtins/customfield_value.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/netbox/utilities/templates/builtins/customfield_value.html b/netbox/utilities/templates/builtins/customfield_value.html index fd78146a6..d244cef08 100644 --- a/netbox/utilities/templates/builtins/customfield_value.html +++ b/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 %}