mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-27 17:31:09 -06:00
Update Processor with new situation.
This commit is contained in:
parent
12b6791e8b
commit
5f9c61c4b4
@ -85,7 +85,7 @@ class Processor
|
|||||||
* @var int $index
|
* @var int $index
|
||||||
* @var RuleAction $action
|
* @var RuleAction $action
|
||||||
*/
|
*/
|
||||||
foreach ($this->rule->ruleActions()->orderBy('order', 'ASC')->get() as $action) {
|
foreach ($this->actions as $action) {
|
||||||
/** @var ActionInterface $actionClass */
|
/** @var ActionInterface $actionClass */
|
||||||
$actionClass = ActionFactory::getAction($action, $this->journal);
|
$actionClass = ActionFactory::getAction($action, $this->journal);
|
||||||
$actionClass->act();
|
$actionClass->act();
|
||||||
@ -114,7 +114,8 @@ class Processor
|
|||||||
|
|
||||||
/** @var TriggerInterface $triggerObject */
|
/** @var TriggerInterface $triggerObject */
|
||||||
$triggerObject = TriggerFactory::getTrigger($trigger);
|
$triggerObject = TriggerFactory::getTrigger($trigger);
|
||||||
if ($triggerObject->triggered()) {
|
// no need to keep pushing the journal around!
|
||||||
|
if ($triggerObject->triggered($this->journal)) {
|
||||||
$hitTriggers++;
|
$hitTriggers++;
|
||||||
}
|
}
|
||||||
if ($trigger->stop_processing) {
|
if ($trigger->stop_processing) {
|
||||||
|
Loading…
Reference in New Issue
Block a user