From 8bab9e84e258d7a88edb33083b52949097ddd95a Mon Sep 17 00:00:00 2001 From: James Cole Date: Thu, 24 Dec 2015 09:50:16 +0100 Subject: [PATCH] Should not have edited that code. #133 --- app/Generator/Chart/Budget/ChartJsBudgetChartGenerator.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Generator/Chart/Budget/ChartJsBudgetChartGenerator.php b/app/Generator/Chart/Budget/ChartJsBudgetChartGenerator.php index ea808d30c6..42608e027d 100644 --- a/app/Generator/Chart/Budget/ChartJsBudgetChartGenerator.php +++ b/app/Generator/Chart/Budget/ChartJsBudgetChartGenerator.php @@ -129,8 +129,10 @@ class ChartJsBudgetChartGenerator implements BudgetChartGenerator foreach ($entries as $entry) { $array = [ 'label' => $entry[0]->formatLocalized($format), - 'data' => array_shift($entry), + 'data' => [], ]; + array_shift($entry); + $array['data'] = $entry; $data['datasets'][] = $array; }