Skip to content
Snippets Groups Projects
Commit d7edab86 authored by Nikolay Lobachev's avatar Nikolay Lobachev
Browse files

Issue #3468029 by daneduijnkerke, LOBsTerr: Creating membership (accepting...

Issue #3468029 by daneduijnkerke, LOBsTerr: Creating membership (accepting invite) does not contain selected role
parent a92e0a6a
No related branches found
No related tags found
No related merge requests found
......@@ -101,12 +101,12 @@ class GroupInvitationManager {
$group_membership = GroupContent::create([
'type' => $content_type_config_id,
'entity_id' => $group_invitation_content->entity_id->target_id,
'entity_id' => $group_invitation_content->getEntityId(),
'plugin_id' => $plugin_id,
'group_type' => $group_type_id,
'gid' => $group->id(),
'uid' => $group_invitation_content->getOwnerId(),
'group_roles' => $group_invitation_content->group_roles->value,
'group_roles' => $group_invitation_content->get('group_roles')->getValue(),
]);
return $group_membership;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment