Skip to content

Commit 2c64a52

Browse files
Added default:"0" to total_count in object_list.html
1 parent 96338c0 commit 2c64a52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netbox/templates/generic/object_list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
<li class="nav-item" role="presentation">
4949
<a class="nav-link active" id="object-list-tab" data-bs-toggle="tab" data-bs-target="#object-list" type="button" role="tab" aria-controls="edit-form" aria-selected="true">
5050
{% trans "Results" %}
51-
<span class="badge text-bg-secondary total-object-count">{% if table.page.paginator.count %}{{ table.page.paginator.count }}{% else %}{{ total_count }}{% endif %}</span>
51+
<span class="badge text-bg-secondary total-object-count">{% if table.page.paginator.count %}{{ table.page.paginator.count }}{% else %}{{ total_count|default:"0" }}{% endif %}</span>
5252
</a>
5353
</li>
5454
{% if filter_form %}

0 commit comments

Comments
 (0)