mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-18 18:44:16 +00:00
Fire some events.
This commit is contained in:
@@ -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 {
|
||||||
|
Reference in New Issue
Block a user