Open micaiahwallace opened 4 years ago
Temporary fix is to change lines 259-260 on includes/ajax-functions.php
from:
$qry .= " and user_id = '".get_current_user_id()."' ";
$total_qry .= " and user_id = '".get_current_user_id()."' ";
to:
$qry .= " and user_id = '".$user_id."' ";
$total_qry .= " and user_id = '".$user_id."' ";
Description
The badgeos_ajax_get_earned_achievements function passes get_current_user_id() into the database query that loads achievement results. This bypasses and ignores the user_id url query parameter.
Steps to Reproduce
Actual result:
Expected result:
Product Versions
Additional Information
N/A