Posted by guillaumev on August 22, 2011 at 2:52pm
6 followers
Jump to:
| 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...
| Attachment | Size | Status | Test result | Operations |
|---|---|---|---|---|
| screenshot.png | 42.55 KB | Ignored: Check issue status. | None | None |
| screenshot_expected.png | 41.22 KB | Ignored: Check issue status. | None | None |
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
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).