From 3e40a6cf3dccb9245b02cf777811a1f19c1b035b Mon Sep 17 00:00:00 2001 From: James Cole Date: Mon, 21 Oct 2019 18:23:07 +0200 Subject: [PATCH] Fix #2755 --- app/TransactionRules/Engine/RuleEngine.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/TransactionRules/Engine/RuleEngine.php b/app/TransactionRules/Engine/RuleEngine.php index e8e0470f7f..b6ef7964b2 100644 --- a/app/TransactionRules/Engine/RuleEngine.php +++ b/app/TransactionRules/Engine/RuleEngine.php @@ -229,7 +229,7 @@ class RuleEngine $validTrigger = ('store-journal' === $trigger->trigger_value && self::TRIGGER_STORE === $this->triggerMode) || ('update-journal' === $trigger->trigger_value && self::TRIGGER_UPDATE === $this->triggerMode); - return $validTrigger && ($this->allRules || in_array($rule->id, $this->rulesToApply, true)); + return $validTrigger && ($this->allRules || in_array($rule->id, $this->rulesToApply, true)) && true === $rule->active; } }