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:
- Create a space called "Space, with a comma"
- Create a section in the space
- 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.
Comment | File | Size | Author |
---|---|---|---|
#2 | oa_core-space-comma-2822313-2.patch | 887 bytes | JeffM2001 |
Comments
Comment #2
JeffM2001 CreditAttribution: JeffM2001 commentedComment #3
mpotter CreditAttribution: mpotter at Phase2 commentedThanks for tracking this down. Committed to e726edf in oa_core.