Fixes #4439: Tweak display of unset custom integer fields

This commit is contained in:
Jeremy Stretch 2020-04-02 10:06:01 -04:00
parent 221e014a25
commit 354f87c888
2 changed files with 2 additions and 1 deletions

View File

@ -9,6 +9,7 @@
### Bug Fixes ### Bug Fixes
* [#4418](https://github.com/netbox-community/netbox/issues/4418) - Fail cleanly when trying to import multiple device types simultaneously * [#4418](https://github.com/netbox-community/netbox/issues/4418) - Fail cleanly when trying to import multiple device types simultaneously
* [#4439](https://github.com/netbox-community/netbox/issues/4439) - Tweak display of unset custom integer fields
--- ---

View File

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