Closed (fixed)
Project:
User Points
Version:
5.x-2.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Mar 2007 at 15:39 UTC
Updated:
21 Apr 2007 at 04:01 UTC
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