Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Chart fix for accounts with accented letters
Balazs Varkonyifd5f075f636c
diff --git a/app/Http/Controllers/GoogleChartController.php b/app/Http/Controllers/GoogleChartController.phpindex cee4d60b8e..6072e490e1 100644--- a/app/Http/Controllers/GoogleChartController.php+++ b/app/Http/Controllers/GoogleChartController.php@@ -46,8 +46,9 @@ class GoogleChartController extends Controller*/public function accountBalanceChart(Account $account, GChart $chart){+ $accountName = iconv('UTF-8', 'ASCII//TRANSLIT', $account->name);$chart->addColumn('Day of month', 'date');- $chart->addColumn('Balance for ' . $account->name, 'number');+ $chart->addColumn('Balance for ' . $accountName, 'number');$chart->addCertainty(1);$start = Session::get('start', Carbon::now()->startOfMonth());@@ -88,7 +89,8 @@ class GoogleChartController extends Controller$index = 1;/** @var Account $account */foreach ($accounts as $account) {- $chart->addColumn('Balance for ' . $account->name, 'number');+ $accountName = iconv('UTF-8', 'ASCII//TRANSLIT', $account->name);+ $chart->addColumn('Balance for ' . $accountName, 'number');$chart->addCertainty($index);$index++;}