"User" not reported correctly in Orders Export. #9715
Labels
type-bug
workflow-needs-replication
workflow-pending-triage
Items that need to be triaged and reviewed before they are worked on.
Bug Report
Expected behavior
The
User
column in the generated CSV file should correspond to the user. Right now it does not.Actual behavior
The order-ID is used instead of the user ID to get the user details.
The error seems to be in this line:
easy-digital-downloads/includes/admin/reporting/export/class-batch-export-payments.php
Line 119 in e1d9aba
That
$user_id
variable is then used to get the user usingget_user_data()
:easy-digital-downloads/includes/admin/reporting/export/class-batch-export-payments.php
Lines 184 to 186 in e1d9aba
As a result, it tries to get the user-data using the order-ID instead of the actual user-ID.
The text was updated successfully, but these errors were encountered: