Skip to:

Opened 4 years ago

Last modified 3 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


@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)

4 years ago

Note: See TracTickets for help on using tickets.