mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-19 10:53:31 +00:00
Cleaning up and bug fixing.
This commit is contained in:
@@ -9,6 +9,8 @@ use Redirect;
|
||||
use Session;
|
||||
use View;
|
||||
use Cache;
|
||||
use Input;
|
||||
|
||||
|
||||
/**
|
||||
* Class CurrencyController
|
||||
@@ -145,6 +147,10 @@ class CurrencyController extends Controller
|
||||
|
||||
Session::flash('success', 'Currency "' . $currency->name . '" created');
|
||||
|
||||
if (intval(Input::get('create_another')) === 1) {
|
||||
return Redirect::route('currency.create');
|
||||
}
|
||||
|
||||
return Redirect::route('currency.index');
|
||||
|
||||
|
||||
@@ -163,7 +169,12 @@ class CurrencyController extends Controller
|
||||
$currency->name = $request->get('name');
|
||||
$currency->save();
|
||||
|
||||
Session::flash('success', 'Currency "' . e($currency->namename) . '" updated.');
|
||||
Session::flash('success', 'Currency "' . e($currency->name) . '" updated.');
|
||||
|
||||
|
||||
if (intval(Input::get('return_to_edit')) === 1) {
|
||||
return Redirect::route('currency.edit', $currency->id);
|
||||
}
|
||||
|
||||
return Redirect::route('currency.index');
|
||||
|
||||
|
Reference in New Issue
Block a user