From 330abe5a2d2a94cae746a800e84b5f52ca71e7ef Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Wed, 5 Oct 2016 15:29:16 -0400 Subject: [PATCH] Fixes #602: Correct display of custom integer fields with value of 0 or 1 --- netbox/templates/inc/custom_fields_panel.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/netbox/templates/inc/custom_fields_panel.html b/netbox/templates/inc/custom_fields_panel.html index fed172aa6..2450e3031 100644 --- a/netbox/templates/inc/custom_fields_panel.html +++ b/netbox/templates/inc/custom_fields_panel.html @@ -8,13 +8,13 @@ {{ field }} - {% if value == True %} + {% if field.type == 300 and value == True %} - {% elif value == False %} + {% elif field.type == 300 and value == False %} {% elif field.type == 500 and value %} {{ value|urlizetrunc:75 }} - {% elif value %} + {% elif field.type == 200 or value %} {{ value }} {% elif field.required %} Not defined