diff --git a/app/Support/Import/JobConfiguration/Spectre/ChooseAccountsHandler.php b/app/Support/Import/JobConfiguration/Spectre/ChooseAccountsHandler.php index 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);