From fc80f828be957a2afc986dc2a67d7272ae2a8a8e Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 8 Jul 2018 15:22:52 +0200 Subject: [PATCH] Fix #1538 --- .../Import/JobConfiguration/Spectre/ChooseAccountsHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);