There is a situation could occur when OG settings aren't needed or set to #access=FALSE in form. So that this notice occurs:

Notice: Undefined index: und in commons_q_a_field_attach_submit() (line 192 of /home/cross/data/www/opera.artemshymko.com/profiles/commons/modules/contrib/commons_q_a/commons_q_a.module).

Attached patch is about to fix this situation.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Devin Carlson’s picture

Version: 7.x-3.0 »
Assigned: Unassigned » Devin Carlson
Status: Active » Needs review
FileSize
636 bytes

The code in the original post looks good but the patch doesn't apply.

A reroll with the same fix.

cr0ss’s picture

Update patch for -dev version of a module. They match and fix the problem I had.

Devin Carlson’s picture

Status: Needs review » Reviewed & tested by the community

Tested #1 by creating new group and non-group questions and posting answers for each question.

Devin Carlson’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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