Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix rule actions checking for renamed accounts.
James Cole6e8d204f0004
diff --git a/app/Listeners/Model/Account/UpdatesAccountInformation.php b/app/Listeners/Model/Account/UpdatesAccountInformation.phpindex 0360e63644..6875d283c7 100644--- a/app/Listeners/Model/Account/UpdatesAccountInformation.php+++ b/app/Listeners/Model/Account/UpdatesAccountInformation.php@@ -51,7 +51,7 @@ class UpdatesAccountInformation implements ShouldQueueprivate function correctRuleActions(Account $account, array $oldData, Rule $rule): void{- $fields = ['set_source_account', 'set_destination_account'];+ $fields = ['set_source_account', 'set_destination_account','convert_withdrawal','convert_deposit','convert_transfer'];Log::debug(sprintf('Check if rule #%d actions reference account #%d "%s"', $rule->id, $account->id, $account->name));$fixed = 0;