diff --git a/src/DataObjects/WorkflowInstance.php b/src/DataObjects/WorkflowInstance.php index 15bbe3b6..13764f13 100644 --- a/src/DataObjects/WorkflowInstance.php +++ b/src/DataObjects/WorkflowInstance.php @@ -323,8 +323,7 @@ public function beginWorkflow(WorkflowDefinition $definition, DataObject $for = $this->write(); } - if ( - $for + if ($for && ($for->hasExtension(WorkflowApplicable::class) || $for->hasExtension(FileWorkflowApplicable::class)) ) {