Skip to:
Content

BuddyPress.org

Changes between Initial Version and Version 1 of Ticket #7397


Ignore:
Timestamp:
12/17/2016 11:21:21 AM (9 years ago)
Author:
r-a-y
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7397 – Description

    initial v1  
    1 @groups_send_invites()@ is the function that handles sending group invites.
     1`groups_send_invites()` is the function that handles sending group invites.
    22
    3 In that function, there is a call to @groups_get_invites_for_group()@.  This function determines what users to send an invite to.
     3In that function, there is a call to `groups_get_invites_for_group()`.  This function determines what users to send an invite to.
    44
    5 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`.
     5However, `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`.
    66
    77Attached patch allows for this and includes unit tests.
     8
     9Note: I have not changed the default logic of `groups_send_invites()` to omit sending to those we have already sent invites to.  However, we can if we want to.