mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-25 18:30:55 -06:00
Add JSON decrypt for #2125
This commit is contained in:
parent
c51c1b8098
commit
9f3c114d57
@ -147,6 +147,11 @@ class UpgradeDatabase extends Command
|
||||
}
|
||||
$currencyCode = $this->tryDecrypt($currencyPreference->data);
|
||||
|
||||
// try json decrypt just in case.
|
||||
if (\strlen($currencyCode) > 3) {
|
||||
$currencyCode = json_decode($currencyCode) ?? 'EUR';
|
||||
}
|
||||
|
||||
$currency = TransactionCurrency::where('code', $currencyCode)->first();
|
||||
if (null === $currency) {
|
||||
$this->line('Fall back to default currency in migrateBillsToRules().');
|
||||
|
Loading…
Reference in New Issue
Block a user