Include "no budget" thing for issue #152

This commit is contained in:
James Cole
2016-03-20 20:06:05 +01:00
parent 201790ff8d
commit 189d969ee6
2 changed files with 11 additions and 3 deletions

View File

@@ -159,6 +159,9 @@ class ChartJsBudgetChartGenerator implements BudgetChartGeneratorInterface
foreach ($budgets as $budget) {
$data['labels'][] = $budget->name;
}
// also add "no budget"
$data['labels'][] = strval(trans('firefly.no_budget'));
/** @var array $entry */
foreach ($entries as $entry) {
$array = [