From 51619713736726622d027f5433af5c0d58dec528 Mon Sep 17 00:00:00 2001 From: James Cole Date: Mon, 21 Sep 2020 15:45:51 +0200 Subject: [PATCH] Different call to count() --- resources/views/v1/accounts/index.twig | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/resources/views/v1/accounts/index.twig b/resources/views/v1/accounts/index.twig index fb3767667f..dd036b55e0 100644 --- a/resources/views/v1/accounts/index.twig +++ b/resources/views/v1/accounts/index.twig @@ -5,14 +5,7 @@ {% endblock %} {% block content %} - {{ dump(accounts.count) }} - {{ dump(accounts.count()) }} - {{ dump(accounts.getCollection.count()) }} - {{ dump(accounts.getCollection().count()) }} - {{ dump(accounts) }} - - - {% if accounts.count > 0 %} + {% if accounts.count() > 0 %}
@@ -72,7 +65,7 @@
{% endif %} - {% if accounts.count == 0 and page == 1 %} + {% if accounts.count() == 0 and page == 1 %} {% include 'partials.empty' with {objectType: objectType, type: 'accounts',route: route('accounts.create', [objectType])} %} {% endif %} {% endblock %}