If you use field groups (field_group module) and enable a profile form on the user register form, the field groups will be lost and the field order will be scrambled because of sub-group weights. Not sure if this should be fixed in core, field_group, or profile. Adding context and a pre-render function does fix it.

See https://www.drupal.org/node/2850015#comment-12048005

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

finne created an issue. See original summary.

finne’s picture

"dumb fix" patch that tests for field_group module.

finne’s picture

Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch, 2: issue_2871480_possible_fix.patch, failed testing.

mglaman’s picture

Status: Needs work » Needs review
FileSize
1.56 KB

Patches generates via IntelliJ don't apply, re-roll.

mglaman’s picture

Tests pass. It's the same code as in Paragraphs. Will commit.

  • mglaman committed 1d7abc5 on 8.x-1.x authored by finne
    Issue #2871480 by finne, mglaman: Field groups are lost on user_register
    
mglaman’s picture

Status: Needs review » Fixed

Thanks!

Status: Fixed » Closed (fixed)

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