Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix #1538
James Colefc80f828be95
diff --git a/app/Support/Import/JobConfiguration/Spectre/ChooseAccountsHandler.php b/app/Support/Import/JobConfiguration/Spectre/ChooseAccountsHandler.phpindex 9797acd428..8dcabdf64b 100644--- a/app/Support/Import/JobConfiguration/Spectre/ChooseAccountsHandler.php+++ b/app/Support/Import/JobConfiguration/Spectre/ChooseAccountsHandler.php@@ -86,7 +86,7 @@ class ChooseAccountsHandler implements SpectreJobConfigurationInterface$config = $this->importJob->configuration;$mapping = $data['account_mapping'] ?? [];$final = [];- $applyRules = (int)$data['apply_rules'] === 1;+ $applyRules = 1 === (int)($data['apply_rules'] ?? 0);foreach ($mapping as $spectreId => $localId) {// validate each$spectreId = $this->validSpectreAccount((int)$spectreId);