Skip to content

Firefly III: a personal finances manager

Only get active piggy banks.

James Cole7b8c86e1e33a
diff --git a/app/Repositories/Account/AccountRepository.php b/app/Repositories/Account/AccountRepository.php
index 4194aaf9ff..a19cf45840 100644
--- a/app/Repositories/Account/AccountRepository.php
+++ b/app/Repositories/Account/AccountRepository.php
@@ -234,7 +234,7 @@ class AccountRepository implements AccountRepositoryInterface
$ids = array_unique($ids);
if (count($ids) > 0) {
- $accounts = Auth::user()->accounts()->whereIn('id', $ids)->get();
+ $accounts = Auth::user()->accounts()->whereIn('id', $ids)->where('accounts.active', 1)->get();
}
bcscale(2);