Nested groups render on other entity forms (or when fields are inaccessible) when they shouldn't

Created on 3 December 2019, almost 5 years ago
Updated 8 September 2024, 2 months ago

Problem/Motivation

When nested field groups are configured for a form display, we are seeing empty groups rendered on other entity forms for that bundle such as when using the Scheduled Transitions module.

It seems that all but the lowest level of groups are rendered, e.g if you have Group A > Group B > Field Z, then on the Scheduled Transitions Form (and add form) you'll see Group A rendered but it will be empty. Adding a Group C under Group B will show Group A > Group B (empty).

Proposed resolution

Not quite sure...most likely somewhere in field_group_remove_empty_form_groups

Remaining tasks

Identify bug, write tests, fix it.

🐛 Bug report
Status

Fixed

Version

4.0

Component

Miscellaneous

Created by

🇦🇺Australia acbramley

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024