Active
Project:
Workflow
Version:
2.1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Jun 2026 at 20:33 UTC
Updated:
10 Jun 2026 at 20:33 UTC
Jump to comment: Most recent
If I try to create a new node which has a workflow field, the select or radio button list of states is empty.
Configure a workflow field to use either the "Select list" or "Check boxes/radio buttons" form display widget. Create a new node using the type. On the form, there are no workflow states listed and the form does not pass validation. This only happens in the -dev branch, not 2.2.2/2.1.10.
The 2.1.x-dev branch removed this code from WorkflowItem::getTransition. It should be replaced so that a default transition is created when the node is unsaved:
$transition ??= WorkflowTransition::create([
'entity' => $this->getEntity(),
'field_name' => $this->getParent()->getName(),
'wid' => $this->getWorkflowId(),
]);
Comments