I saw this issue with the HEAD version, but I didn't see it being resolved with 1.1. I'm running Userpoints 5x-1.1 and Invite 5x-1.2. I'm sure the bug is in this section of code, but I've only been using Drupal for about a month and haven't been able to fix it on my own yet.
When a new user creates their account based on an invite, the account with uid=2 is always getting the points.
function userpoints_invite($op, $args) {
switch($op) {
case 'invite':
$points = variable_get(USERPOINTS_INVITE_INVITE, 0);
break;
case 'escalate':
$points = variable_get(USERPOINTS_INVITE_REGISTER, 0);
break;
}
_userpoints_update_points($points, $args['inviter']->uid, $op);
}
The inviter is always getting set to uid 2 on my site, and I've tried my own fixes to get it to work properly with no luck so far. Is there a version of Invite (that doesn't involve going to the buddylist version) that would correct this or is there a snippet I could add to this function to make it work properly?
Comments
Comment #1
jredding commentedIssue seems to have been fixed. Can someone verify this?
Comment #2
(not verified) commentedComment #3
jredding commented