fixed test

This commit is contained in:
Cüneyt Şentürk 2020-12-30 23:37:12 +03:00
parent c8fd30ec6e
commit 4a0f40f256

View File

@ -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);
}