- Status: Moved to Github
@Esther E. , I'll try to explain the issue so you can try to reproduce it.
I have a private club. The invitation was sent. The user now has the INVITED status in the core_clubs_memberships table.
I can grab that in my MemberListener via the onJoinClub and do whatever I need to.
What I need is to perform an action when a member's status changes from INVITED to MEMBER. In other words, when they accept the invitation by clicking on the JOIN button, however, this isn’t happening within the onJoinClub
method, even though it should, since everything flows through the addMember
method.
I got:
public function onJoinClub( MemberClass $member, Club $club ) : void
{
$status = $club->memberStatus( $member );
if( in_array( $status, array( 'member', 'moderator', 'leader', 'invited' ) ) )
If I remove INVITED from there, my actions don't do what they should.
Let me know if it isn't clear.
Thank you.
Recommended Comments