From 8549c7c81bd77b9335a0f599cc55acace7c1bc1c Mon Sep 17 00:00:00 2001 From: James Cole Date: Mon, 26 Jun 2017 18:24:29 +0200 Subject: [PATCH] This should fix #677 --- resources/views/reports/partials/categories.twig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/views/reports/partials/categories.twig b/resources/views/reports/partials/categories.twig index cc2d2b88de..c59ad3d3cd 100644 --- a/resources/views/reports/partials/categories.twig +++ b/resources/views/reports/partials/categories.twig @@ -8,7 +8,7 @@ {% set sum = 0 %} - {% for id, category in report %} + {% for index, category in report %} {% set sum = sum + category.spent %} {% if loop.index > listLength %} @@ -16,12 +16,12 @@ {% endif %} - {{ category.name }} + {{ category.name }} {{ category.spent|formatAmount }}