Warning: Undefined array key in WorkflowDefaultWidget->formElement() line 87

Created on 20 December 2023, 11 months ago
Updated 1 February 2024, 10 months ago

Problem/Motivation

When accessing the node create form with a workflow field i get the error

Warning: Undefined array key "field_state" in Drupal\workflow\Plugin\Field\FieldWidget\WorkflowDefaultWidget->formElement() (line 87 of modules/contrib/workflow/src/Plugin/Field/FieldWidget/WorkflowDefaultWidget.php).

Steps to reproduce

Create workflow and add field of type "Workflow state" to the workflow. On the edit tab configure "Select List" under "How to show the available states". Now add field of type "Workflow state" to the node. On the node form display select "Workflow transition form".

Proposed resolution

See commit

๐Ÿ› Bug report
Status

Postponed: needs info

Version

1.7

Component

Code

Created by

๐Ÿ‡ฉ๐Ÿ‡ชGermany fox_01

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024