I'm using both og and og_vocab. I have found that when I'm on a group page that I'm subscribed to, and I click on create content, the create node page no longer is within the group context (i.e. group blocks disappear).

This causes a problem in that the og_vocab module checks for the group context (og_get_group_context) to determine which categories to display on the node creation form. So, when creating new content, the group categories form fields are not displaying. When editing existing group nodes, the group category form fields show up as they should.

I reverted to an older version of the og.module (from Nov. 14th, 2006) and found that on node creation, the group context is set properly. Therefore, a recent update to the code has changed this functionality.

My skills aren't good enough for me to debug this myself, but I suspect that it might be a change made to the og_form_add_og_audience function, and might be related to this fix - http://drupal.org/node/67320

Comments

ricmadeira’s picture

Priority: Normal » Critical

I'm using only the default og.module and when a node is created inside the group (using the provided gids[]=xxxx link), the node is not created as part of that group if the audience is set to optional.

If the audience is set as "required", funny enough, the node is created inside the group as it should be (at least for people who are only subscribed to only that one group) and og.module doesn't complain about anything.

skor’s picture

Using a new 4.7.6 install on Apache/2.0.52 (CentOS)

  • og-4.7.x-1.x
  • og_calendar-4.7.x-1.x
  • event-4.7.x-1.x
  • views-4.7.x-1.5

Under Admin>>settings>>og>>Node Authoring Form>> Audience Required, neither Required nor Optional seem to help for me.

If I try to create either a Story node or Event node the audience is checked on the node edit form, but the setting is not saved.

ricmadeira’s picture

Ah, also, I forgot to add to my report that me, being a super-user, didn't notice anything wrong. I had to log in with a regular user account to reproduce the problem my users found.

skor’s picture

Looking at the latest og-4.7.x-1.x-dev.tar.gz, there's an og.install file in there. Which sparked the memory for me that duh!! I hadn't updated my database. I'd been swapping back & forth between 5.x and 4.7 that I forgot.

But the .insall file is a 5.x thing, so I thing the 4.x release need the og.mysql (and og.mysqli) files so users can create the tables manualy.

skor’s picture

Arg!! nevermind. Those tables do exist in my database, so apparently someone backported the module self-install functionality to 4.7.

Sorry, Ignore my previous post.

moshe weitzman’s picture

Status: Active » Fixed

i fixed a bug in this area with regards when 'audience checkboxes' disabled. please retry with latest code on 5. 4.7 is not maintained anymore. please reopen if bug persists.

Anonymous’s picture

Status: Fixed » Closed (fixed)