Closed (fixed)
Project:
Workflow
Version:
2.1.10
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Jun 2026 at 20:33 UTC
Updated:
11 Sep 2026 at 08:55 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
Comment #2
johnvHmm, I cannot reproduce that on a new installation.
In the workflow Transitions configuration, are the role settings OK?
Especially that for author?
In the Permissions page, if you disable the 'Authenticated user', you may find hidden permissions for the other user types.
Comment #4
johnvIt should not be possible, but OK, I reverted the code change from #3590383: Avoid ::createItem when inspecting fields