If a set of nested fieldsets (with "Hide if empty" enabled) contains only empty fields the "emptiness" does not propagate up from the lowest level fieldset to the highest. This results in empty fieldsets being displayed.

Take the following structure:

  • Fieldset 1
    • Empty field 1
    • Fieldset 2
      • Empty field 2

In this example "Fieldset 1" will be visible when the entire structure should actually be hidden. This is because "Fieldset 1" sees the empty "Fieldset 2" as content.

I have a patch on the way which I'm just doing some further testing with.

Comments

morbiD’s picture

Status: Active » Needs review
StatusFileSize
new1.01 KB

Ok, this seems to work for me.

  • rudiedirkx committed 6b8f36b on 7.x-2.x authored by morbiD
    Issue #2530668 by morbiD: "Hide if empty" does not propagate up through...
rudiedirkx’s picture

Status: Needs review » Fixed

Perfect. Committed.

Will create a new release later.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.