In userpoints_admin_txn(), the arg() calls appear to be wrong. $mode = arg(4) should be arg(3), and $txn_id = (int)arg(4) should be arg(3).

Also, global user$ is needed to pick up $user->uid for the 'approver_uid' hidden field on adds.

BTW, love the module. Thanks, Brad

Comments

bradbanister’s picture

Oops, meant $txn_id = (int)arg(5) should be arg(4).

stephit’s picture

Thanks for posting this fix...I was having the same problem and when I made the changes you posted it finally worked.

kbahey’s picture

Status: Active » Fixed

Fixed in 5.x.

Anonymous’s picture

Status: Fixed » Closed (fixed)