see title

CommentFileSizeAuthor
#2 userpoints_cancel.patch557 bytessmk-ka

Comments

smk-ka’s picture

A quick fix for all that need this feature: add to the switch in userpoints_invite() the following code:

    case 'cancel':
      args['inviter'] = db_result(db_query_range("SELECT uid FROM {invite} WHERE email = '%s'", 0, 1, $args['email']));
      $points = -variable_get(USERPOINTS_INVITE_INVITE, 0);
      break;

IMHO the invite module should pass in the inviter's user object (as it is the case with every other $op), that's why I would wait until this issue for invite has been accepted or declined.
--
Stefan Kudwien
www.unleashedmind.com

smk-ka’s picture

Status: Active » Needs review
StatusFileSize
new557 bytes

Commited the Invite API change and created a patch for this issue.

kbahey’s picture

Status: Needs review » Fixed

Committed.

Anonymous’s picture

Status: Fixed » Closed (fixed)