Fix a rare issue where ID's are missing. Probably the root cause is something else.

This commit is contained in:
James Cole 2020-02-15 06:56:39 +01:00
parent 8079fab472
commit 1f1829e3b5
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -148,11 +148,11 @@ TODO: hide and show columns
{{ transaction.date.formatLocalized(monthAndDayFormat) }}
</td>
<td style=" {{ style|raw }}">
<a href="{{ route('accounts.show', [transaction.source_account_id]) }}"
<a href="{{ route('accounts.show', [transaction.source_account_id|default(1)]) }}"
title="{{ transaction.source_account_iban|default(transaction.source_account_name) }}">{{ transaction.source_account_name }}</a>
</td>
<td style=" {{ style|raw }}">
<a href="{{ route('accounts.show', [transaction.destination_account_id]) }}"
<a href="{{ route('accounts.show', [transaction.destination_account_id|default(1)]) }}"
title="{{ transaction.destination_account_iban|default(transaction.destination_account_name) }}">{{ transaction.destination_account_name }}</a>
</td>
{% if showCategory %}