From 5f9c61c4b40f120005ec266b856016dd8bcd310c Mon Sep 17 00:00:00 2001 From: James Cole Date: Wed, 17 Feb 2016 19:08:27 +0100 Subject: [PATCH] Update Processor with new situation. --- app/Rules/Processor.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Rules/Processor.php b/app/Rules/Processor.php index 64431de106..4e1c8b8bd1 100644 --- a/app/Rules/Processor.php +++ b/app/Rules/Processor.php @@ -85,7 +85,7 @@ class Processor * @var int $index * @var RuleAction $action */ - foreach ($this->rule->ruleActions()->orderBy('order', 'ASC')->get() as $action) { + foreach ($this->actions as $action) { /** @var ActionInterface $actionClass */ $actionClass = ActionFactory::getAction($action, $this->journal); $actionClass->act(); @@ -114,7 +114,8 @@ class Processor /** @var TriggerInterface $triggerObject */ $triggerObject = TriggerFactory::getTrigger($trigger); - if ($triggerObject->triggered()) { + // no need to keep pushing the journal around! + if ($triggerObject->triggered($this->journal)) { $hitTriggers++; } if ($trigger->stop_processing) {