#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

bmagistro’s picture

Status: Active » Fixed

Good catch. It has been put into the dev branch. I'm still learning git so if it doesn't show let me know.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.