Opened 8 years ago
Closed 8 years ago
#7410 closed enhancement (fixed)
Pass the inviter ID to the 'groups_accept_invite' action
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 2.8 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Groups | Keywords: | has-patch needs-testing |
Cc: |
Description
The inviter ID is saved when an invitation to a group is sent, but it is discarded in groups_accept_invite()
when $member->accept_invite()
is called, before the 'groups_accept_invite'
action is fired. So there is no way to get the inviter ID from a function hooked to this action. Unless, of course, groups_accept_invite()
is updated to save the inviter ID in a variable, that it can later pass as an arg to the 'groups_accept_invite'
action.
Patch forthcoming.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Pass the inviter ID as the third action arg