mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-29 02:11:12 -06:00
Fire some events.
This commit is contained in:
parent
6f6b653d54
commit
239bbd30c0
@ -197,6 +197,7 @@ class TransactionController extends BaseController
|
|||||||
}
|
}
|
||||||
|
|
||||||
// trigger the creation for recurring transactions.
|
// trigger the creation for recurring transactions.
|
||||||
|
Event::fire('journals.store',[$journal]);
|
||||||
|
|
||||||
if (Input::get('create') == '1') {
|
if (Input::get('create') == '1') {
|
||||||
return Redirect::route('transactions.create', [$what])->withInput();
|
return Redirect::route('transactions.create', [$what])->withInput();
|
||||||
@ -225,6 +226,7 @@ class TransactionController extends BaseController
|
|||||||
if ($journal->validate()) {
|
if ($journal->validate()) {
|
||||||
// has been saved, return to index:
|
// has been saved, return to index:
|
||||||
Session::flash('success', 'Transaction updated!');
|
Session::flash('success', 'Transaction updated!');
|
||||||
|
Event::fire('journals.update',[$journal]);
|
||||||
|
|
||||||
return Redirect::route('transactions.index');
|
return Redirect::route('transactions.index');
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user