eca_form: Action "Entity form: build entity" may cause a fatal when used on form validation

Issue information

From user: mxh

Related to !232 (merged)

Contribution record

Fork management

Problem/Motivation

Action "Entity form: build entity" may cause a fatal when used on form validation. The following error may then occur:

The website encountered an unexpected error. Please try again later.
TypeError: Argument 1 passed to Drupal\Core\Field\WidgetBase::massageFormValues() must be of the type array, string given, called in .../web/core/lib/Drupal/Core/Field/WidgetBase.php on line 400 in Drupal\Core\Field\WidgetBase->massageFormValues() (line 547 of core/lib/Drupal/Core/Field/WidgetBase.php).

Steps to reproduce

Proposed resolution

Remaining tasks

Fix the bug.

User interface changes

API changes

Data model changes

Edited by drupalbot
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information