This was a fun one to debug. We noticed that sometimes content created by our admin users was not ending up associated with a section as it should be, and eventually figured out that the differentiating factor was whether the space name had a comma in it. It turned out that if there's a comma in the name, select2widget_field_widget_form() wraps the default value in quotes, which leads to the workaround for og's default value in oa_core_form_node_form_alter() to fail.

Steps to reproduce:

  1. Create a space called "Space, with a comma"
  2. Create a section in the space
  3. As a different admin user (with administer groups), create a piece of content in that section

Expected result:
On the node add page, under Access, Your Groups should show the space name and Section should show the section name

Actual result:
Space name shows under Other Groups and the Section dropdown has no options.

CommentFileSizeAuthor
#2 oa_core-space-comma-2822313-2.patch887 bytesJeffM2001
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

JeffM2001 created an issue. See original summary.

JeffM2001’s picture

Status: Active » Needs review
FileSize
887 bytes
mpotter’s picture

Status: Needs review » Fixed

Thanks for tracking this down. Committed to e726edf in oa_core.

Status: Fixed » Closed (fixed)

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