You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 18, 2024. It is now read-only.
To set context, I have a module that generates a node from an incoming email and associates it with a group based on the email address that it came in on. The flow looks something like this:
//(email arrives, and triggers drupal)// Prepare node, populate fieldsnode_save($node);
foreach ($group_nodesas$gid => $group_node) {
og_group('node', $gid, array('entity_type' => 'node', 'entity' => $node);
}
// At this point, $node->og_group_ref should be populated, but it is not.
(FYI, this is a modification I'm making to the og_mailinglist module).
In the og_group() source code, it specifically mentions that OgMembership::save() should update the entity in question.
To set context, I have a module that generates a node from an incoming email and associates it with a group based on the email address that it came in on. The flow looks something like this:
(FYI, this is a modification I'm making to the og_mailinglist module).
In the og_group() source code, it specifically mentions that OgMembership::save() should update the entity in question.
My current solution is this:
In OgMembership::save() after parent::save(). (Sorry, no patch at the moment).
The text was updated successfully, but these errors were encountered: