Skip to content

Firefly III: a personal finances manager

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

James Cole1f1829e3b53f
diff --git a/resources/views/v1/list/groups.twig b/resources/views/v1/list/groups.twig
index 21bc369a1c..703167bbde 100644
--- a/resources/views/v1/list/groups.twig
+++ b/resources/views/v1/list/groups.twig
@@ -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 %}