Closed (fixed)
Project:
Ubercart Userpoints
Version:
6.x-2.0-beta1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Feb 2011 at 23:34 UTC
Updated:
2 Apr 2011 at 20:31 UTC
#uc_userpoints_award.module line 261
db_query("insert into {uc_up_award_log} (uid, oid, points) values(%d, %d, %d)", $curUserId, $order->order_id, $points);
The codes above inserts log for current user. But these points for referral. So it needs to be like below.
db_query("insert into {uc_up_award_log} (uid, oid, points) values(%d, %d, %d)", $refUserId, $order->order_id, $points);
Comments
Comment #1
bmagistro commentedGood catch. It has been put into the dev branch. I'm still learning git so if it doesn't show let me know.