From 7ad09da4e9fa2d051235a20ffa55cc81f228500c Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 29 Jul 2018 16:04:22 +0200 Subject: [PATCH] Fix #1576 --- app/Services/Internal/Support/JournalServiceTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/Internal/Support/JournalServiceTrait.php b/app/Services/Internal/Support/JournalServiceTrait.php index 3b97e9d375..a5de54011c 100644 --- a/app/Services/Internal/Support/JournalServiceTrait.php +++ b/app/Services/Internal/Support/JournalServiceTrait.php @@ -75,7 +75,7 @@ trait JournalServiceTrait /** @var BillFactory $factory */ $factory = app(BillFactory::class); $factory->setUser($journal->user); - $bill = $factory->find($data['bill_id'], $data['bill_name']); + $bill = $factory->find((int)$data['bill_id'], $data['bill_name']); if (null !== $bill) { $journal->bill_id = $bill->id;