Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fixed the category chart.
James Cole003a05ee8dfb
diff --git a/app/Repositories/Category/CategoryRepository.php b/app/Repositories/Category/CategoryRepository.phpindex 91c6c7f889..3f75bdab52 100644--- a/app/Repositories/Category/CategoryRepository.php+++ b/app/Repositories/Category/CategoryRepository.php@@ -107,7 +107,7 @@ class CategoryRepository implements CategoryRepositoryInterface->after($start)->transactionTypes(['Withdrawal'])->groupBy('categories.id')- ->get(['categories.id as category_id', 'categories.encrypted', 'categories.name', 'transaction_journals.*']);+ ->get(['categories.id as category_id', 'categories.encrypted as category_encrypted', 'categories.name', 'transaction_journals.*']);$result = [];foreach ($set as $entry) {@@ -115,7 +115,7 @@ class CategoryRepository implements CategoryRepositoryInterfaceif (isset($result[$categoryId])) {$result[$categoryId]['sum'] += $entry->amount;} else {- $isEncrypted = intval($entry->encrypted) == 1 ? true : false;+ $isEncrypted = intval($entry->category_encrypted) == 1 ? true : false;$name = strlen($entry->name) == 0 ? trans('firefly.noCategory') : $entry->name;$name = $isEncrypted ? Crypt::decrypt($name) : $name;$result[$categoryId] = [