From 0bd18f94ace9ae258f0e5dbe495a90752a5fffdf Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 3 Oct 2015 17:54:15 +0200 Subject: [PATCH] Fix ambiguous id. --- app/Repositories/Bill/BillRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Repositories/Bill/BillRepository.php b/app/Repositories/Bill/BillRepository.php index cf05afec22..e0e3672931 100644 --- a/app/Repositories/Bill/BillRepository.php +++ b/app/Repositories/Bill/BillRepository.php @@ -154,7 +154,7 @@ class BillRepository implements BillRepositoryInterface } $journals = new Collection; if (count($ids) > 0) { - $journals = Auth::user()->transactionjournals()->transactionTypes(['Withdrawal'])->whereIn('id', $ids)->get(); + $journals = Auth::user()->transactionjournals()->transactionTypes(['Withdrawal'])->whereIn('transaction_journals.id', $ids)->get(); } return $journals;