- Issue created by @johnv
When adding an extra field to a workflow type, the following error appears:
TypeError: workflow_node_current_state(): Argument #1 ($entity) must be of type Drupal\Core\Entity\EntityInterface, null given, called in \workflow\src\Entity\WorkflowTransition.php on line 869 in workflow_node_current_state() (line 431 of \workflow\workflow.module).
- enter workflow settings
- go to 'Manage fields' tab
- add a field
- error occurs
Add extra conditions.
Active
2.0
Code