Creating membership (accepting invite) does not contain selected role.

Created on 14 August 2024, 4 months ago
Updated 30 August 2024, 4 months ago

Problem/Motivation

When accepting an invitation with selected roles, the new membership is created without roles. This is because the new "createMember()" method tries to obtain the selected roles by accessing the class property instead of using the get() method. The direct property 'group_roles' does not exist in the class so we get null.

Steps to reproduce

Invite a (non-existing) member with one or more selected roles. Accept the invite using the mail and see that the new member has no roles selected.

Proposed resolution

In GroupInvitationManager.php -> createMember() method, use methods to obtain field values instead of directly accessing them using the class properties. See patch.

🐛 Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024