On the Edit Menu screen, OG Menu's drop-down beneath "Enable this menu for the following group" does not show groups that don't have any content in them, even if the menu is already attached to a particular group.

This is because og_menu_form_menu_edit_menu_alter() is assembling the list of options by querying for nodes in og_membership table. If a group does not yet have content, no nodes from it will be in this table.

Comments

jeffschuler created an issue. See original summary.

jeffschuler’s picture

StatusFileSize
new878 bytes

Use the og_get_all_group() function instead of querying the og_membership table.

jeffschuler’s picture

Status: Active » Needs review

  • rv0 committed 89f2e82 on 7.x-3.x
    Issue #2553455 by jeffschuler: Groups without content don't appear on...
rv0’s picture

Status: Needs review » Fixed

Didn't use the patch, but used the same query as used in the autocomplete for consistency and performance.
Thanks

Status: Fixed » Closed (fixed)

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