mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-18 07:38:29 +00:00
Issue #208
This commit is contained in:
@@ -156,9 +156,9 @@ class AccountController extends Controller
|
|||||||
$types = Config::get('firefly.accountTypesByIdentifier.' . $what);
|
$types = Config::get('firefly.accountTypesByIdentifier.' . $what);
|
||||||
$accounts = $repository->getAccounts($types);
|
$accounts = $repository->getAccounts($types);
|
||||||
/** @var Carbon $start */
|
/** @var Carbon $start */
|
||||||
$start = clone session('start', Carbon::now()->startOfMonth());
|
$start = clone session('start', Carbon::now()->startOfMonth());
|
||||||
/** @var Carbon $end */
|
/** @var Carbon $end */
|
||||||
$end = clone session('end', Carbon::now()->endOfMonth());
|
$end = clone session('end', Carbon::now()->endOfMonth());
|
||||||
$start->subDay();
|
$start->subDay();
|
||||||
|
|
||||||
$ids = $accounts->pluck('id')->toArray();
|
$ids = $accounts->pluck('id')->toArray();
|
||||||
@@ -225,6 +225,13 @@ class AccountController extends Controller
|
|||||||
Session::flash('success', 'New account "' . $account->name . '" stored!');
|
Session::flash('success', 'New account "' . $account->name . '" stored!');
|
||||||
Preferences::mark();
|
Preferences::mark();
|
||||||
|
|
||||||
|
// update preferences if necessary:
|
||||||
|
$frontPage = Preferences::get('frontPageAccounts', [])->data;
|
||||||
|
if (count($frontPage) > 0) {
|
||||||
|
$frontPage[] = $account->id;
|
||||||
|
Preferences::set('frontPageAccounts', $frontPage);
|
||||||
|
}
|
||||||
|
|
||||||
if (intval(Input::get('create_another')) === 1) {
|
if (intval(Input::get('create_another')) === 1) {
|
||||||
// set value so create routine will not overwrite URL:
|
// set value so create routine will not overwrite URL:
|
||||||
Session::put('accounts.create.fromStore', true);
|
Session::put('accounts.create.fromStore', true);
|
||||||
|
|||||||
Reference in New Issue
Block a user