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
Comment #1
bradbanister commentedOops, meant $txn_id = (int)arg(5) should be arg(4).
Comment #2
stephit commentedThanks for posting this fix...I was having the same problem and when I made the changes you posted it finally worked.
Comment #3
kbahey commentedFixed in 5.x.
Comment #4
(not verified) commented