Hi,

Problem/Motivation

I create two extra fields and through UI group them inside a field group.
There is no entity field with them in the group.
I build the content of both extra fields with a renderable array

The field group and its content are hidden.

Proposed resolution

Use helper methods from Element

Remaining tasks

  • Reviews needed
  • Malformed element is rendered
     $element = array('#foo' => 'bar'); 

User interface changes

None

API changes

None

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

anfor created an issue. See original summary.

anfor’s picture

Status: Active » Needs review
FileSize
1.63 KB
SylvainM’s picture

Status: Needs review » Reviewed & tested by the community

Having the same problem, I can confirm this patch solves it, thx

NerOcrO’s picture

Works fine for me, thank's!

harivenuv’s picture

Thank you, works fine for me.

  • zuuperman committed 73874a9 on 8.x-1.x authored by anfor
    Issue #2714473 by anfor: Not empty groups are removed on entity display
    
nils.destoop’s picture

Status: Reviewed & tested by the community » Fixed

Thx for the patch. I committed it do dev

Status: Fixed » Closed (fixed)

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