diff --git a/app/Http/Controllers/PiggyBank/CreateController.php b/app/Http/Controllers/PiggyBank/CreateController.php index d58962bf84..9f0e3ea21b 100644 --- a/app/Http/Controllers/PiggyBank/CreateController.php +++ b/app/Http/Controllers/PiggyBank/CreateController.php @@ -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')) { diff --git a/resources/views/piggy-banks/create.twig b/resources/views/piggy-banks/create.twig index 9171a49fc7..6e1a81ae0a 100644 --- a/resources/views/piggy-banks/create.twig +++ b/resources/views/piggy-banks/create.twig @@ -17,7 +17,7 @@