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:
James Cole
2014-11-17 21:50:11 +01:00
parent 15e99bd672
commit 4f4e6fac16
4 changed files with 70 additions and 4 deletions

View File

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