Skip to content

Firefly III: a personal finances manager

Fix bunq import "Undefined index: apply_rules"

Mathieu Post0556433ce482
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 = [];
/*