In hook_inline_entity_form_entity_form_alter() the #fieldgroups element is always attached to the 'default' form mode. When a custom form mode is used this can lead to problems whereby fields from the custom form mode are displayed in groups defined in the default form mode. For example this Inline Entity Form issue #2822810: Field group configuration assigned to wrong view mode demonstrates the bug.

Comments

Peacog created an issue. See original summary.

peacog’s picture

Status: Active » Needs review
StatusFileSize
new541 bytes

Here's a patch that fixes the bug.

renaudcuny’s picture

Dear Peacog,
Thanks a lot for the fix!
Works like a charm for me, hope it will be committed soon :).
Best regards,
Renaud
ps: I'll mark #2822810: Field group configuration assigned to wrong view mode as a duplicate of your issue

peacog’s picture

Status: Needs review » Reviewed & tested by the community

Thanks for reviewing :)

nils.destoop’s picture

Status: Reviewed & tested by the community » Fixed

Thx for the patch. I committed it to dev

  • zuuperman committed a4d5eac on 8.x-1.x authored by Peacog
    Issue #2842354 by Peacog, renaudcuny: Form mode ignored as field groups...

Status: Fixed » Closed (fixed)

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