Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
#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 CreditAttribution: 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.