Skip to content

Firefly III: a personal finances manager

Fixed a bug where the home budget chart would not actually list transactions without a budget.

James Cole3f89057528ca
diff --git a/app/Http/Controllers/GoogleChartController.php b/app/Http/Controllers/GoogleChartController.php
index 6431b4a2be..ff0280b1e8 100644
--- a/app/Http/Controllers/GoogleChartController.php
+++ b/app/Http/Controllers/GoogleChartController.php
@@ -206,7 +206,8 @@ class GoogleChartController extends Controller
->from('transaction_journals')
->leftJoin('budget_transaction_journal', 'budget_transaction_journal.transaction_journal_id', '=', 'transaction_journals.id')
->where('transaction_journals.date', '>=', $start->format('Y-m-d 00:00:00'))
- ->where('transaction_journals.date', '<=', $end->format('Y-m-d 00:00:00'));
+ ->where('transaction_journals.date', '<=', $end->format('Y-m-d 00:00:00'))
+ ->whereNotNull('budget_transaction_journal.budget_id');
}
)
->before($end)