Do not enforce workflow content for non-active workflows
[MAILPOET-4757]
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user