Skip to:
Content

BuddyPress.org

Opened 3 years ago

Last modified 2 years ago

#7397 closed enhancement

groups_send_invites() should allow us to omit sending to users that have already received an invite — at Initial Version

Reported by: r-a-y Owned by:
Milestone: 2.9 Priority: normal
Severity: normal Version:
Component: Groups Keywords: has-patch
Cc:

Description

@groups_send_invites()@ is the function that handles sending group invites.

In that function, there is a call to @groups_get_invites_for_group()@. This function determines what users to send an invite to.

However, @groups_get_invites_for_group()@ doesn't allow us to check if we have already sent an invite to that user due to a lack of check for invite_sent = 1.

Attached patch allows for this and includes unit tests.

Change History (1)

@r-a-y
3 years ago

Note: See TracTickets for help on using tickets.