Empty nested field groups not hidden properly on edit/add/VBO forms

Created on 26 July 2017, over 7 years ago
Updated 16 September 2024, 3 months ago

Using 7.x-1.5, create a content type with the following nested field groups and no fields:

  • Level A
    • Level B
  • Level 1
    • Level 2
      • Level 3

The node add/edit forms (and any VBO forms you create) will have a single empty fieldset called "Level 1".

It seems as though this module can only hide the two deepest levels in any given set of nested groups.

As far as I can tell, this is because _field_group_is_empty_element() returns TRUE whenever any child element has a #type set, even though that child might just be another empty field group.

I've tried using 7.x-1.x-dev instead but that actually makes things worse and shows all of the fieldsets.

🐛 Bug report
Status

Needs work

Version

4.0

Component

Code

Created by

🇬🇧United Kingdom morbiD

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

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