Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#2 | commons_q_a-og_reference_fix-2008930-1.patch | 636 bytes | cr0ss |
#1 | fix-group-reference-undefined-language-notice-2008930-1.patch | 636 bytes | Devin Carlson |
commons_q_a_reference_fix.patch | 816 bytes | cr0ss |
Comments
Comment #1
Devin Carlson CreditAttribution: Devin Carlson commentedThe code in the original post looks good but the patch doesn't apply.
A reroll with the same fix.
Comment #2
cr0ss CreditAttribution: cr0ss commentedUpdate patch for -dev version of a module. They match and fix the problem I had.
Comment #3
Devin Carlson CreditAttribution: Devin Carlson commentedTested #1 by creating new group and non-group questions and posting answers for each question.
Comment #4
Devin Carlson CreditAttribution: Devin Carlson commentedCommitted #1 to Commons Q&A 7.x-3.x.
http://drupalcode.org/project/commons_q_a.git/commit/a02d30d