Details element displayed despite child entity reference field being empty

Created on 17 February 2025, about 2 months ago

Problem/Motivation

I have a multi-value entity reference field that I've placed in a 'details' element via Field Group. This works exactly as intended, except when the entity reference field is empty. The 'details' element is still displayed, and when opened, shows and empty div.

This is unexpected (and undesirable), since the "Display element also when empty" option is unchecked.

Proposed resolution

Check child fields for empty item lists in field_group_remove_empty_display_groups()

🐛 Bug report
Status

Active

Version

3.6

Component

Miscellaneous

Created by

🇨🇦Canada ergonlogic Montréal, Québec 🇨🇦

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

Comments & Activities

Production build 0.71.5 2024