Labels aren't generated for nested inline entity forms

Created on 8 May 2025, 1 day ago

Problem/Motivation

I have two entity types, Foo and Bar. Foo has an inline entity form referencing Bar entities. Both have automatic entity labels. The label pattern of Foo contains the label of the referenced Bar entity. auto_entitylabel_inline_entity_label_callback() makes it so the label of the Foo entity is generated before being shown in the form widget, but it's incomplete, since the label of the Bar entity isn't being generated.

Proposed resolution

In the generateLabel() method, also generate labels of referenced entities. Add some kind of recursion protection to make sure it never gets stuck in a loop.

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇧🇪Belgium dieterholvoet Brussels

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