Skip to:

Opened 7 years ago

Closed 7 years ago

#7410 closed enhancement (fixed)

Pass the inviter ID to the 'groups_accept_invite' action

Reported by: jdgrimes's profile jdgrimes Owned by: boonebgorges's profile boonebgorges
Milestone: 2.8 Priority: normal
Severity: normal Version:
Component: Groups Keywords: has-patch needs-testing


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)

7410.diff (1.2 KB) - added by jdgrimes 7 years ago.
Pass the inviter ID as the third action arg

Download all attachments as: .zip

Change History (4)

7 years ago

Pass the inviter ID as the third action arg

#1 @jdgrimes
7 years ago

  • Keywords has-patch needs-testing added

#2 @boonebgorges
7 years ago

  • Milestone changed from Awaiting Review to 2.8

Seems OK to me. Thanks for the patch!

#3 @boonebgorges
7 years ago

  • Owner set to boonebgorges
  • Resolution set to fixed
  • Status changed from new to closed

In 11358:

Pass inviter ID to the groups_accept_invite action.

Props jdgrimes.
Fixes #7410.

Note: See TracTickets for help on using tickets.