mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-04 03:43:07 +00:00
Empty opening balance means field should be empty.
This commit is contained in:
@@ -153,6 +153,9 @@ class EditController extends Controller
|
||||
'notes' => $this->repository->getNoteText($account),
|
||||
'active' => $hasOldInput ? (bool)$request->old('active') : $account->active,
|
||||
];
|
||||
if('' === $openingBalanceAmount) {
|
||||
$preFilled['opening_balance'] = '';
|
||||
}
|
||||
|
||||
$request->session()->flash('preFilled', $preFilled);
|
||||
|
||||
|
Reference in New Issue
Block a user