mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-16 09:22:33 +00:00
Use different method for finding objects.
This commit is contained in:
@@ -85,9 +85,9 @@ class NewUserController extends Controller
|
||||
$this->createSavingsAccount($request, $repository);
|
||||
|
||||
// also store currency preference from input:
|
||||
$currency = $currencyRepository->find(intval($request->input('amount_currency_id_bank_balance')));
|
||||
$currency = $currencyRepository->findNull(intval($request->input('amount_currency_id_bank_balance')));
|
||||
|
||||
if (null !== $currency->id) {
|
||||
if (null !== $currency) {
|
||||
// store currency preference:
|
||||
Preferences::set('currencyPreference', $currency->code);
|
||||
Preferences::mark();
|
||||
|
Reference in New Issue
Block a user