Skip to content

Firefly III: a personal finances manager

Fix rule actions checking for renamed accounts.

James Cole6e8d204f0004
diff --git a/app/Listeners/Model/Account/UpdatesAccountInformation.php b/app/Listeners/Model/Account/UpdatesAccountInformation.php
index 0360e63644..6875d283c7 100644
--- a/app/Listeners/Model/Account/UpdatesAccountInformation.php
+++ b/app/Listeners/Model/Account/UpdatesAccountInformation.php
@@ -51,7 +51,7 @@ class UpdatesAccountInformation implements ShouldQueue
private 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;