Cannot save nodes after adding a workflow field

Created on 18 October 2024, 2 months ago

Problem/Motivation

I installed the latest version (1.8) of this module, created a workflow and then added a workflow field to an existing content-type with content already in the system. After which I could no longer save any nodes of that content type because the workflow field fails not null validation even though the form select widget is set to 'Draft' - my initial state. All widget types (radio, action buttons, etc.) fail as well and all states. New content works fine. Downgrading to 1.7 fixes the issue or programmatically setting the initial state of the node.

Steps to reproduce

1. Create a new content-type
2. Create a node of that type
3. Create a workflow with states and permissions set
4. Add a workflow field to the content-type from (1)
5. Edit the node from (3) and hit save

Saving the node will be blocked by form validation on the workflow field.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.8

Component

Code

Created by

🇨🇦Canada joel_osc

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024