ECA Form: InvalidArgumentException: The inline_entity_form #default_value property must be an entity object

Created on 30 April 2024, 7 months ago
Updated 14 May 2024, 6 months ago

Problem/Motivation

InvalidArgumentException: The inline_entity_form #default_value property must be an entity object. in Drupal\inline_entity_form\Element\InlineEntityForm::processEntityForm() (line 99 of /modules/contrib/inline_entity_form/src/Element/InlineEntityForm.php)

Steps to reproduce

1) Add Entity: load template.
2) Add Form field: set default value template.
3) Pre-populate IEF form value by entity reference field. eg. field_node][widget][0][inline_entity_form.
4) Save.
5) The form throws invalid entity object.

Proposed resolution

Add inline_entity_form support in \Drupal\eca_form\Plugin\Action\FormFieldDefaultValue.

💬 Support request
Status

Fixed

Version

1.1

Component

Code

Created by

🇵🇭Philippines madelyncruz

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

Comments & Activities

Production build 0.71.5 2024