mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-07 06:33:57 -06:00
Test fix for budgeting.
This commit is contained in:
parent
f7117d47c2
commit
f814f45e36
@ -52,9 +52,13 @@ class BudgetController extends BaseController
|
||||
Event::fire('limits.store', [$limit]);
|
||||
|
||||
} else {
|
||||
$limit->amount = $amount;
|
||||
$limit->save();
|
||||
Event::fire('limits.update', [$limit]);
|
||||
if ($amount > 0) {
|
||||
$limit->amount = $amount;
|
||||
$limit->save();
|
||||
Event::fire('limits.update', [$limit]);
|
||||
} else {
|
||||
$limit->delete();
|
||||
}
|
||||
}
|
||||
// try to find the limit repetition for this limit:
|
||||
$repetition = $limit->limitrepetitions()->first();
|
||||
|
Loading…
Reference in New Issue
Block a user