From c8227e09ee6149604171dac140a30c41bead9889 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 26 Jul 2015 19:10:31 +0200 Subject: [PATCH] id was ambiguous. --- app/Repositories/Account/AccountRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.*']);