mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-02 20:25:28 +00:00
Fixed a bug where limits and limit repetitions would not be updated and/or created because of double post calls and missing events.
This commit is contained in:
@@ -40,7 +40,7 @@ class BudgetController extends BaseController
|
||||
/*
|
||||
* A newly stored limit also created a limit repetition.
|
||||
*/
|
||||
Event::fire('limits.store', [$limit]); // Still in use.
|
||||
Event::fire('limits.store', [$limit]); // TODO Nothing responds here!
|
||||
|
||||
} else {
|
||||
if ($amount > 0) {
|
||||
@@ -49,7 +49,7 @@ class BudgetController extends BaseController
|
||||
/*
|
||||
* An updated limit also updates the associated limit repetitions.
|
||||
*/
|
||||
Event::fire('limits.update', [$limit]); // Still in use.
|
||||
Event::fire('limits.update', [$limit]); // TODO Nothing responds here!
|
||||
} else {
|
||||
$limit->delete();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user