This commit is contained in:
James Cole 2018-07-08 15:22:52 +02:00
parent d05a1e0260
commit fc80f828be

View File

@ -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);