From 9a8a3e94d675c80a4eda81eb59c65671f3964375 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 14 Dec 2014 21:27:13 +0100 Subject: [PATCH] Fix a chart. --- app/controllers/GoogleChartController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/GoogleChartController.php b/app/controllers/GoogleChartController.php index 9541807181..589f883803 100644 --- a/app/controllers/GoogleChartController.php +++ b/app/controllers/GoogleChartController.php @@ -374,7 +374,7 @@ class GoogleChartController extends BaseController $chart->addColumn('Date', 'date'); $chart->addColumn('Balance', 'number'); - $set = \DB::table('piggybank_events')->where('piggybank_id', $piggybank->id)->groupBy('date')->get(['date', DB::Raw('SUM(`amount`) AS `sum`')]); + $set = \DB::table('piggy_bank_events')->where('piggybank_id', $piggybank->id)->groupBy('date')->get(['date', DB::Raw('SUM(`amount`) AS `sum`')]); foreach ($set as $entry) { $chart->addRow(new Carbon($entry->date), floatval($entry->sum));