From 9c4d2e8791d476c64356245cdddad7707e93f81c Mon Sep 17 00:00:00 2001 From: James Cole Date: Fri, 23 Dec 2016 18:48:21 +0100 Subject: [PATCH] Mention $other in chart cache. [skip ci] --- app/Http/Controllers/Chart/BudgetReportController.php | 2 ++ app/Http/Controllers/Chart/CategoryReportController.php | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/app/Http/Controllers/Chart/BudgetReportController.php b/app/Http/Controllers/Chart/BudgetReportController.php index ae51df4ee0..5ba5e9dd0e 100644 --- a/app/Http/Controllers/Chart/BudgetReportController.php +++ b/app/Http/Controllers/Chart/BudgetReportController.php @@ -84,6 +84,7 @@ class BudgetReportController extends Controller $cache->addProperty($budgets); $cache->addProperty($start); $cache->addProperty($end); + $cache->addProperty($others); if ($cache->has()) { return Response::json($cache->get()); } @@ -140,6 +141,7 @@ class BudgetReportController extends Controller $cache->addProperty($budgets); $cache->addProperty($start); $cache->addProperty($end); + $cache->addProperty($others); if ($cache->has()) { return Response::json($cache->get()); } diff --git a/app/Http/Controllers/Chart/CategoryReportController.php b/app/Http/Controllers/Chart/CategoryReportController.php index d2ffe572b4..be76c938a4 100644 --- a/app/Http/Controllers/Chart/CategoryReportController.php +++ b/app/Http/Controllers/Chart/CategoryReportController.php @@ -83,6 +83,7 @@ class CategoryReportController extends Controller $cache->addProperty($categories); $cache->addProperty($start); $cache->addProperty($end); + $cache->addProperty($others); if ($cache->has()) { return Response::json($cache->get()); } @@ -138,6 +139,7 @@ class CategoryReportController extends Controller $cache->addProperty($accounts); $cache->addProperty($categories); $cache->addProperty($start); + $cache->addProperty($others); $cache->addProperty($end); if ($cache->has()) { return Response::json($cache->get()); @@ -194,6 +196,7 @@ class CategoryReportController extends Controller $cache->addProperty($categories); $cache->addProperty($start); $cache->addProperty($end); + $cache->addProperty($others); if ($cache->has()) { return Response::json($cache->get()); } @@ -250,6 +253,7 @@ class CategoryReportController extends Controller $cache->addProperty($categories); $cache->addProperty($start); $cache->addProperty($end); + $cache->addProperty($others); if ($cache->has()) { return Response::json($cache->get()); }