Skip to content

Commit

Permalink
Fix a bug with adding 0 stock items to vault
Browse files Browse the repository at this point in the history
  • Loading branch information
tomik-z-cech committed Mar 1, 2024
1 parent affb550 commit 28df137
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions items/templates/items/item_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ <h3>
</strong>
</div>
{% if item.item_stock > 0 %}
<form method="POST" id="vaultForm" action="{% url 'add-to-vault' item_pk=item.pk %}">
{% csrf_token %}
{% if item.different_sizes and item.different_values %}
Expand Down Expand Up @@ -123,6 +124,7 @@ <h3>
</span>
</div>
</form>
{% endif %}
<div class="scroll-up row">
<div class="col-4 d-flex align-items-end">
<i class="bi bi-award"></i>
Expand Down

0 comments on commit 28df137

Please sign in to comment.