From 3f89057528caa24789fbca939a72a756ea15a7d3 Mon Sep 17 00:00:00 2001 From: James Cole Date: Fri, 13 Mar 2015 07:10:26 +0100 Subject: [PATCH] Fixed a bug where the home budget chart would not actually list transactions without a budget. --- app/Http/Controllers/GoogleChartController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/GoogleChartController.php b/app/Http/Controllers/GoogleChartController.php index 6431b4a2be..ff0280b1e8 100644 --- a/app/Http/Controllers/GoogleChartController.php +++ b/app/Http/Controllers/GoogleChartController.php @@ -206,7 +206,8 @@ class GoogleChartController extends Controller ->from('transaction_journals') ->leftJoin('budget_transaction_journal', 'budget_transaction_journal.transaction_journal_id', '=', 'transaction_journals.id') ->where('transaction_journals.date', '>=', $start->format('Y-m-d 00:00:00')) - ->where('transaction_journals.date', '<=', $end->format('Y-m-d 00:00:00')); + ->where('transaction_journals.date', '<=', $end->format('Y-m-d 00:00:00')) + ->whereNotNull('budget_transaction_journal.budget_id'); } ) ->before($end)