Undefined array key "form_id" in Drupal\workflow\Element\WorkflowTransitionElement

Created on 15 April 2024, 10 months ago
Updated 29 May 2024, 9 months ago

Problem/Motivation

On Drupal core 10.3.x and module eca 2.0.x-dev ( ECA: Event - Condition - Action ), as soon as I visit /admin/config/workflow/eca/process_xxxx/edit, I get this warning:

Warning: Undefined array key "form_id" in Drupal\workflow\Element\WorkflowTransitionElement::transitionElement() (line 284 of modules/contrib/workflow/src/Element/WorkflowTransitionElement.php).

Then, if I try to save the process using either of the 2 provided actions (workflow_node_given_state_action or workflow_node_next_state_action), I get the error:

The subform and parent form must contain the #parents property, which must be an array. Try calling this method from a #process callback instead.

..which might be impossible to do from the UI since the form only has 1 input field: "Workflow transition action config" with no description.

🐛 Bug report
Status

Postponed: needs info

Version

1.7

Component

Actions and Triggers

Created by

🇮🇹Italy kopeboy Milan

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

Comments & Activities

Production build 0.71.5 2024