From 0556433ce4828e3db87a8fb79d190d65623bd72c Mon Sep 17 00:00:00 2001 From: Mathieu Post Date: Sat, 22 Sep 2018 13:31:09 +0200 Subject: [PATCH] Fix bunq import "Undefined index: apply_rules" When using the bunq import and unchecking "apply rules" gave an error. Same as https://github.com/firefly-iii/firefly-iii/issues/1538 --- .../Import/JobConfiguration/Bunq/ChooseAccountsHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Support/Import/JobConfiguration/Bunq/ChooseAccountsHandler.php b/app/Support/Import/JobConfiguration/Bunq/ChooseAccountsHandler.php index 4a357846e0..0846e8ae79 100644 --- a/app/Support/Import/JobConfiguration/Bunq/ChooseAccountsHandler.php +++ b/app/Support/Import/JobConfiguration/Bunq/ChooseAccountsHandler.php @@ -79,7 +79,7 @@ class ChooseAccountsHandler implements BunqJobConfigurationInterface $config = $this->repository->getConfiguration($this->importJob); $accounts = $config['accounts'] ?? []; $mapping = $data['account_mapping'] ?? []; - $applyRules = 1 === (int)$data['apply_rules']; + $applyRules = 1 === (int)($data['apply_rules'] ?? 0); $final = []; /*