The OG_CTA module is stripping down the list of groups in the Audience section whether the node type is allowed group or not . To do that, it loops through the ['og_nodeapi']['visible']['og_groups']['#options'] values which used to be an array of group nids. With OG 7.3 (maybe before), this is no longer the case, it is a double-indexed array with 'My groups' and 'Other groups' indexes. So here is a patch to adapt to this change in the OG module.

Comments

pvasener’s picture

StatusFileSize
new2.82 KB

Hum... Sorry little typo error in the previous patch.

pvasener’s picture

StatusFileSize
new2.82 KB

Still not good. This one is, promised.

Note: It would be convenient to be able to delete our own posts :)

pvasener’s picture

Title: Empty Audience with OG 7.3 » Empty Audience with OG 6.x-2.0
Version: 5.x-1.6 » 6.x-1.2
StatusFileSize
new1.97 KB

Here is an updated patch for OGCTA 1.2 and OG 2.0

baff’s picture

In dev version this seems to be completely different. I have this problem in dev version too.

pgillis’s picture

This patch also works with OG 6.x-2.1. Are their plans to integrate the patch into the module yet or is there something wrong with the patch/approach? Thanks.

jvieille’s picture

Version: 6.x-1.2 » 6.x-1.x-dev
Status: Needs review » Closed (duplicate)

The issue is there - solution provided

http://drupal.org/node/573656