Parcourir la source

Fixes #14827: Ensure all matching event rules are processed in response to an event

Jeremy Stretch il y a 2 ans
Parent
commit
66db4f3874
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      netbox/extras/events.py

+ 1 - 1
netbox/extras/events.py

@@ -81,7 +81,7 @@ def process_event_rules(event_rules, model_name, event, data, username, snapshot
 
 
         # Evaluate event rule conditions (if any)
         # Evaluate event rule conditions (if any)
         if not event_rule.eval_conditions(data):
         if not event_rule.eval_conditions(data):
-            return
+            continue
 
 
         # Webhooks
         # Webhooks
         if event_rule.action_type == EventRuleActionChoices.WEBHOOK:
         if event_rule.action_type == EventRuleActionChoices.WEBHOOK: