mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-30 05:24:28 +02:00
Fixed an exception on admin pages, if the element does not contain parts.
This commit is contained in:
parent
d46c1bf22d
commit
cad9534b04
2 changed files with 2 additions and 1 deletions
|
@ -38,7 +38,7 @@
|
|||
<label class="col-form-label col-md-3">{% trans %}entity.info.parts_count{% endtrans %}</label>
|
||||
<div class="col-md-9">
|
||||
<p class="form-control-static">
|
||||
{% if entity.id and repo.partsCount is defined %}
|
||||
{% if entity.id and partsContainingElement %}
|
||||
{{ repo.partsCount(entity) }}
|
||||
{% else %}
|
||||
-
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue