From 4a0f40f25643adc713668c966d2c7fe7c4182d63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Wed, 30 Dec 2020 23:37:12 +0300 Subject: [PATCH] fixed test --- app/Http/Controllers/Purchases/Payments.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Purchases/Payments.php b/app/Http/Controllers/Purchases/Payments.php index 4c025d10d..c2fc6f5ce 100644 --- a/app/Http/Controllers/Purchases/Payments.php +++ b/app/Http/Controllers/Purchases/Payments.php @@ -156,7 +156,7 @@ class Payments extends Controller $categories = Category::expense()->enabled()->orderBy('name')->take(setting('default.select_limit'))->pluck('name', 'id'); - if ($revenue->category && !array_key_exists($payment->category_id, $categories)) { + if ($payment->category && !array_key_exists($payment->category_id, $categories)) { $categories->put($revenue->category->id, $revenue->category->name); }