Opened 10 years ago
Closed 10 years ago
#7410 closed enhancement (fixed)
Pass the inviter ID to the 'groups_accept_invite' action
| Reported by: | jdgrimes | Owned by: | boonebgorges |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.8 |
| Component: | Groups | Version: | |
| Severity: | normal | 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Pass the inviter ID as the third action arg