mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-30 10:01:51 +00:00
Fix #11288
This commit is contained in:
@@ -75,6 +75,9 @@ class CreateController extends Controller
|
||||
$subTitleIcon = 'fa-plus';
|
||||
$request->old('_token');
|
||||
$preFilled = $request->old();
|
||||
if(!array_key_exists('transaction_currency_id', $preFilled)) {
|
||||
$preFilled['transaction_currency_id'] = $this->primaryCurrency->id;
|
||||
}
|
||||
|
||||
// put previous url in session if not redirect from store (not "create another").
|
||||
if (true !== session('piggy-banks.create.fromStore')) {
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<div class="box-body">
|
||||
{{ ExpandedForm.text('name') }}
|
||||
{{ ExpandedForm.amountNoCurrency('target_amount') }}
|
||||
{{ CurrencyForm.currencyList('transaction_currency_id', null, {helpText:'piggy_default_currency'|_}) }}
|
||||
{{ CurrencyForm.currencyList('transaction_currency_id', preFilled.transaction_currency_id, {helpText:'piggy_default_currency'|_}) }}
|
||||
{{ AccountForm.assetLiabilityMultiAccountList('accounts', preFilled.accounts, {label: 'saveOnAccounts'|_, helpText: 'piggy_account_currency_match'|_ }) }}
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user