Steps I did that produced it
1) Created a group
2) Created a space
3) Created a calendar section
4) In a separate tab, visited group (so group became active)
5) Click calendar to add new event
(Section field is blank and group field filled to the Group)
6) click submit
Expected: Event posted to calendar
Actual: fatal error:
OgException: OG membership can not be created in entity node and bundle oa_event using the field og_group_ref as the field does not reference oa_group bundle in node entity type. in OgMembership->save() (line 63 of /Users/hfox/Sites/oa/drupal/sites/all/modules/contrib/og/includes/og.membership.inc).

There's two issues here I think
1) Section from url ignored
2) Group is being set in fields it cannot be used in

Comments

mpotter’s picture

I think this might be "by design" since Atrium stored the current OG entity (group or space) in your user $_SESSION so moving between different tabs can be a problem if they are in different spaces or groups.

hefox’s picture

It's sorta by design, but the group field likely shouldn't be defaulted to a group that'll cause a fatal error on submit -- this is something we can check before filling in the default. Also, if there' a section being passed in via the url, should the space of that section override current group (perhaps actually active the space it's associated with?)

hefox’s picture

Status: Active » Fixed

Sooo... I cannot reproduce this o.O It won't default to group anymore.

Status: Fixed » Closed (fixed)

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