Changes between Initial Version and Version 1 of Ticket #7397
- Timestamp:
- 12/17/2016 11:21:21 AM (9 years ago)
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. 2 2 3 In that function, there is a call to @groups_get_invites_for_group()@. This function determines what users to send an invite to.3 In that function, there is a call to `groups_get_invites_for_group()`. This function determines what users to send an invite to. 4 4 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`.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`. 6 6 7 7 Attached patch allows for this and includes unit tests. 8 9 Note: 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.