Do not enforce workflow content for non-active workflows

[MAILPOET-4757]
This commit is contained in:
Jan Jakes
2022-11-01 09:49:47 +01:00
committed by David Remer
parent dac8c1e2f3
commit 12f2d1730f
4 changed files with 16 additions and 2 deletions

View File

@@ -25,6 +25,11 @@ class AtLeastOneTriggerRule implements WorkflowNodeVisitor {
}
public function complete(Workflow $workflow): void {
// run full step validation only for active workflows
if ($workflow->getStatus() !== Workflow::STATUS_ACTIVE) {
return;
}
if ($this->triggerFound) {
return;
}