fixed test
This commit is contained in:
parent
4a0f40f256
commit
2c3d472cd8
@ -157,7 +157,7 @@ class Payments extends Controller
|
||||
$categories = Category::expense()->enabled()->orderBy('name')->take(setting('default.select_limit'))->pluck('name', 'id');
|
||||
|
||||
if ($payment->category && !array_key_exists($payment->category_id, $categories)) {
|
||||
$categories->put($revenue->category->id, $revenue->category->name);
|
||||
$categories->put($payment->category->id, $payment->category->name);
|
||||
}
|
||||
|
||||
$payment_methods = Modules::getPaymentMethods();
|
||||
|
Loading…
x
Reference in New Issue
Block a user