I think there may be a misleading comment on the OG Context settings page where it says:

Select groups if they were passed in the node create URL (e.g. node/add/post?field_group_ref=4,5,6). Note: Depends on Entity reference prepopulate module, and enabling "Prepopulate" in the field settings.

To get this to work with entity reference prepopulate I needed to use the field name 'og_group_ref=1,2,3' instead of 'field_group_ref' as indicated in the comment.

CommentFileSizeAuthor
#2 prepopulate-field-name-1645316.patch1.01 KBjoel_osc
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

amitaibu’s picture

Care to roll a patch and get a credit for this? :)

joel_osc’s picture

Here is a patch...fairly new to creating git patches, so please let me know if it needs any work. Cheers.

joel_osc’s picture

Status: Active » Needs review

Oops, forgot to set status to needs review.

amitaibu’s picture

Status: Needs review » Fixed

Committed, thanks.

Status: Fixed » Closed (fixed)

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