Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix rule order for #10938
James Colea751218d53dd
diff --git a/app/TransactionRules/Engine/SearchRuleEngine.php b/app/TransactionRules/Engine/SearchRuleEngine.phpindex c4b4822ba4..a2164cf2fe 100644--- a/app/TransactionRules/Engine/SearchRuleEngine.php+++ b/app/TransactionRules/Engine/SearchRuleEngine.php@@ -508,9 +508,10 @@ class SearchRuleEngine implements RuleEngineInterface{Log::debug(sprintf('Going to fire group #%d with %d rule(s)', $group->id, $group->rules->count()));+ $rules = $group->rules()->orderBy('order', 'ASC')->get();/** @var Rule $rule */- foreach ($group->rules as $rule) {- Log::debug(sprintf('Going to fire rule #%d from group #%d', $rule->id, $group->id));+ foreach ($rules as $rule) {+ Log::debug(sprintf('Going to fire rule #%d with order #%d from group #%d', $rule->id, $rule->order, $group->id));$result = $this->fireRule($rule);if (true === $result && true === $rule->stop_processing) {Log::debug(sprintf('The rule was triggered and rule->stop_processing = true, so group #%d will stop processing further rules.', $group->id));diff --git a/config/firefly.php b/config/firefly.phpindex c1c9db8f92..8f26b11816 100644--- a/config/firefly.php+++ b/config/firefly.php@@ -81,7 +81,7 @@ return ['version' => 'develop/2025-09-21','build_time' => 1758437799,'api_version' => '2.1.0', // field is no longer used.- 'db_version' => 26,+ 'db_version' => 27,// generic settings'maxUploadSize' => 1073741824, // 1 GB