mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-08-28 17:07:21 +00:00
Fix edit screen.
Signed-off-by: James Cole <thegrumpydictator@gmail.com>
This commit is contained in:
@@ -157,6 +157,7 @@ class PiggyBankController extends Controller
|
||||
$subTitle = trans('firefly.update_piggy_title', ['name' => $piggyBank->name]);
|
||||
$subTitleIcon = 'fa-pencil';
|
||||
$targetDate = null;
|
||||
$note = $piggyBank->notes()->first();
|
||||
/*
|
||||
* Flash some data to fill the form.
|
||||
*/
|
||||
@@ -168,7 +169,7 @@ class PiggyBankController extends Controller
|
||||
'account_id' => $piggyBank->account_id,
|
||||
'targetamount' => $piggyBank->targetamount,
|
||||
'targetdate' => $targetDate,
|
||||
'note' => $piggyBank->notes()->first()->text,
|
||||
'note' => is_null($note) ? '' : $note->text,
|
||||
];
|
||||
Session::flash('preFilled', $preFilled);
|
||||
Session::flash('gaEventCategory', 'piggy-banks');
|
||||
|
Reference in New Issue
Block a user