This commit is contained in:
James Cole 2019-10-21 18:23:07 +02:00
parent 004d4a2d22
commit 3e40a6cf3d
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -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;
}
}