Skip to content

Firefly III: a personal finances manager

id was ambiguous.

James Colec8227e09ee61
diff --git a/app/Repositories/Account/AccountRepository.php b/app/Repositories/Account/AccountRepository.php
index a94c7273b0..456be93773 100644
--- a/app/Repositories/Account/AccountRepository.php
+++ b/app/Repositories/Account/AccountRepository.php
@@ -131,7 +131,7 @@ class AccountRepository implements AccountRepositoryInterface
$query = Auth::user()->accounts()->accountTypeIn(['Default account', 'Asset account']);
if (count($preference->data) > 0) {
- $query->whereIn('id', $preference->data);
+ $query->whereIn('accounts.id', $preference->data);
}
$result = $query->get(['accounts.*']);