diff --git a/resources/twig/accounts/delete.twig b/resources/twig/accounts/delete.twig index ef7cea4dbb..4608db3fdc 100644 --- a/resources/twig/accounts/delete.twig +++ b/resources/twig/accounts/delete.twig @@ -13,14 +13,14 @@ Are you sure that you want to delete the {{account.accountType.type|lower}} "{{account.name}}"?
- {% if account.transactions().count() > 0 %} + {% if account.transactions|length > 0 %}- {{account.accountType.type|capitalize}} "{{ account.name }}" still has {{account.transactions().count()}} transaction(s) associated to it. These will be deleted as well. + {{account.accountType.type|capitalize}} "{{ account.name }}" still has {{ account.transactions|length }} transaction(s) associated to it. These will be deleted as well.
{% endif %} - {% if account.piggyBanks().count() > 0 %} + {% if account.piggyBanks|length > 0 %}- {{account.accountType.type|capitalize}} "{{ account.name }}" still has {{account.piggyBanks().count()}} piggy bank(s) associated to it. These will be deleted as well. + {{account.accountType.type|capitalize}} "{{ account.name }}" still has {{ account.piggyBanks|length }} piggy bank(s) associated to it. These will be deleted as well.
{% endif %}diff --git a/resources/twig/list/journals.twig b/resources/twig/list/journals.twig index 34ff958003..0fa99ec0ab 100644 --- a/resources/twig/list/journals.twig +++ b/resources/twig/list/journals.twig @@ -33,7 +33,7 @@