Download & Extend

Fields in field groups not appearing on user registration

Project:Organic groups
Version:7.x-2.x-dev
Component:og.module
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Hi,

How to reproduce:

  • Create field groups using the field_group module and use at least one field_group in the user's fields.
  • Put some fields in this field group (such as for example "First name") and make it display on user registration
  • Configure OG Register and the Group audience field in your user's fields to be displayed on user registration

What you see:

  • The fields that should appear in field groups do not appear anymore. The field groups appear empty (see attached file screenshot.png)

What you should see:

  • The fields in field groups should appear normally (see screenshot_expected.png)

Cause of the problem:
I've found out that the problem is due to the call in og_register_form_user_register_form_alter to:

field_attach_form('user', $account, $form, $form_state);

This call to field_attach_form causes the field_group hook_field_attach_form to be called twice. If I comment out the call to "field_attach_form" in og_register, everything looks like it's working fine...
AttachmentSizeStatusTest resultOperations
screenshot.png42.55 KBIgnored: Check issue status.NoneNone
screenshot_expected.png41.22 KBIgnored: Check issue status.NoneNone

Comments

#1

I just tried a registration with field_attach_form commented out in og_register and it worked just fine, registering me to the groups I selected in the registration form. Is this field_attach_form really required ?

#2

The bug is still there, after updating organic groups... any update on this issue ?

#3

We are experiencing this same issue. Any word on this?

#4

I'm experiencing this in a site I'm building as well. I was also able to duplicate using the above steps in a clean drupal installation. Using 7.x-1.3.

#5

Version:7.x-1.1» 7.x-2.x-dev

Are you able to reproduce on 7.x-2.x?

#6

Figured it out. It was Organic groups register making them disappear.

#7

@gregrenner,

Yes we know that :) Are you able to reproduce with 7.x-2.x?

#8

Any update on this? I'm having similar issues but for any field, doesnt matter if its in a field group or not. Dont wont to upgrade tp 7.x-2x if its not working

#9

I have the same problem @#8 with current dev version.

og_register is disabled (but it was enabled).

nobody click here