After updating to the latest dev of commons groups I receive the following error, while creating or updating an group:

Notice: Undefined index: field_og_subscribe_settings in locale_field_entity_form_submit() (line 438 of /mnt/srv/htdocs/house/modules/locale/locale.module).
Notice: Undefined index: field_og_access_default_value in locale_field_entity_form_submit() (line 438 of /mnt/srv/htdocs/house/modules/locale/locale.module).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Devin Carlson’s picture

Assigned: Unassigned » Devin Carlson
Status: Active » Needs review
FileSize
2.15 KB

This is caused by commons_groups_form_group_node_form_alter() unsetting $form['field_og_subscribe_settings'].

While this could be solved by using '#access' => FALSE, I don't believe that the field_og_subscribe_settings field needs to be wrapped in a fieldset at all, so the attached patch removes the wrapper completely.

slowflyer’s picture

Thanks!

The patch worked for me!

ezra-g’s picture

Issue tags: +Commons 7.x-3.4 radar

Adding this issue to the 3.4 radar.

Devin Carlson’s picture

Title: groups with locale module enabeld » Error notice when creating or updating groups with locale module enabled
FileSize
2.27 KB

A reroll of #1.

Devin Carlson’s picture

Status: Needs review » Fixed

Tested #4 with an existing Commons install and didn't run into any errors when creating or updating groups with or without the locale module enabled. I also didn't come across any issues caused by OG Access being enabled or disabled.

Committed #4 to Commons 7.x-3.x.

http://drupalcode.org/project/commons.git/commit/2f674d7

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