Fix attachment count

This commit is contained in:
James Cole 2017-08-27 08:53:48 +02:00
parent b8d4776671
commit 1ecf3d04d9
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -53,10 +53,10 @@
{% endif %}
</a>
{{ splitJournalIndicator(transaction.journal_id) }}
{% if transaction.transactionJournal.attachments|length > 0 %}
{% set countAtt = transaction.transactionJournal.attachments.count %}
{% if countAtt > 0 %}
<i class="fa fa-paperclip"
title="{{ Lang.choice('firefly.nr_of_attachments', journal.attachments|length, {count: journal.attachments|length}) }}"></i>
title="{{ Lang.choice('firefly.nr_of_attachments', countAtt, {count: countAtt}) }}"></i>
{% endif %}
</td>