From 5958990ed55e4db16f6f31a3744ce0bf0e1bb684 Mon Sep 17 00:00:00 2001 From: James Cole Date: Fri, 15 Jan 2016 06:35:31 +0100 Subject: [PATCH] Stop processing. --- app/Rules/Processor.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/Rules/Processor.php b/app/Rules/Processor.php index 9ef84fa551..45692c8603 100644 --- a/app/Rules/Processor.php +++ b/app/Rules/Processor.php @@ -87,6 +87,9 @@ class Processor if ($triggerClass->triggered()) { $hitTriggers++; } + if ($trigger->stop_processing) { + break; + } } Log::debug('Total: ' . $foundTriggers . ' found triggers. ' . $hitTriggers . ' triggers were hit.'); @@ -114,6 +117,9 @@ class Processor /** @var ActionInterface $actionClass */ $actionClass = new $class($action, $this->journal); $actionClass->act(); + if ($action->stop_processing) { + break; + } }