mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-04 20:11:54 +00:00
Fix #1989
This commit is contained in:
@@ -86,10 +86,11 @@ class SelectAccountsHandler implements YnabJobConfigurationInterface
|
|||||||
$applyRules = 1 === (int)($data['apply_rules'] ?? 0);
|
$applyRules = 1 === (int)($data['apply_rules'] ?? 0);
|
||||||
foreach ($mapping as $ynabId => $localId) {
|
foreach ($mapping as $ynabId => $localId) {
|
||||||
// validate each
|
// validate each
|
||||||
$ynabId = $this->validYnabAccount($ynabId);
|
$ynabId = $this->validYnabAccount($ynabId);
|
||||||
$accountId = $this->validLocalAccount((int)$localId);
|
$accountId = $this->validLocalAccount((int)$localId);
|
||||||
$final[$ynabId] = $accountId;
|
if ($accountId !== 0) {
|
||||||
|
$final[$ynabId] = $accountId;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Log::debug('Final mapping is:', $final);
|
Log::debug('Final mapping is:', $final);
|
||||||
$messages = new MessageBag;
|
$messages = new MessageBag;
|
||||||
|
|||||||
Reference in New Issue
Block a user