mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Optimizes some of the reminder routines; still have to test future repetitions although it should work fine.
This commit is contained in:
@@ -212,7 +212,7 @@ class PiggybankController extends BaseController
|
||||
$piggyBank = $this->_repository->store($data);
|
||||
if (!is_null($piggyBank->id)) {
|
||||
Session::flash('success', 'New piggy bank "' . $piggyBank->name . '" created!');
|
||||
Event::fire('piggybanks.storePiggy',[$piggyBank]);
|
||||
Event::fire('piggybanks.store',[$piggyBank]);
|
||||
|
||||
return Redirect::route('piggybanks.index');
|
||||
|
||||
@@ -241,7 +241,7 @@ class PiggybankController extends BaseController
|
||||
$piggyBank = $this->_repository->store($data);
|
||||
if ($piggyBank->id) {
|
||||
Session::flash('success', 'New piggy bank "' . $piggyBank->name . '" created!');
|
||||
Event::fire('piggybanks.storeRepeated',[$piggyBank]);
|
||||
Event::fire('piggybanks.store',[$piggyBank]);
|
||||
|
||||
return Redirect::route('piggybanks.index');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user