The dev version of the Invite module 5.x-2.x supports more than one user sending an invitation to the same email address, and also handles invitations when a user registers without an invitation code, but using an email address that has been invited.
This patch adapts those changes to the user_relationship_invites module. It should be backwards-compatible with the current stable version of the Invite module.
It adds code to the 'insert' handler for user_relationship_invites_user. When a user is inserted, any invitations to the user's email address are converted to relationship requests.
This does not interfere with a user accepting an invitation, because after the invitation is accepted the corresponding entry in user_relationship_invites is removed.
| Comment | File | Size | Author |
|---|---|---|---|
| user_relationships_invite.patch | 1.58 KB | scottgifford |
Comments
Comment #1
alex.k commentedTried it with a 1.x-dev version of Invite, and unfortunately there is an error when the invitee registers:
user warning: Unknown column 'canceled' in 'where clause' query: SELECT inviter_uid, rtid, invite_code FROM invite, user_relationship_invites WHERE user_relationship_invites.invite_code = invite.reg_code AND lower(email) = lower('.....') AND canceled = 0 in /Users/alexk/projects/user_relationships/5d/includes/database.mysqli.inc on line 154.
Comment #2
berdirSorry for pinging the participants.
Now that Drupal 7 is out, there is no support for Drupal 5 and the corresponding modules anymore. Therefore, I'm closing all old issues which are still open.
I suggest you upgrade to Drupal 6 or 7 and figure out if you're feature is still needed or the bug still exists and open a new issue in that case.