Upgraded to Drupal 7 from Drupal 6 and now using A V2 7.x -1.3.

When an affiliate user access their order reports via:

https://www.domain.com/user/UID/affiliate/orders

The reports show orders for ALL affiliate users.

The report should only show the orders associated with this particular affiliate user UID.

I checked permissions and could not find a solution such as "only show orders associated with own Affiliate UID"

This issue has only presented itself with D7 - I did not have this issue with D6.

Help appreciated.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dainesj’s picture

Assigned: dainesj » Unassigned
skulegirl’s picture

Version: 7.x-1.3 » 7.x-1.x-dev
Component: User interface » Code
Status: Active » Needs review
FileSize
362 bytes

The db_select call in uc_affiliate2_orders was missing the condition. Patch attached.

michellezeedru’s picture

The patch in #2 worked for me. Thanks!

jerry’s picture

Status: Needs review » Reviewed & tested by the community

Works here as well. Let's mark this RTBC and get it committed.

bisonbleu’s picture

It appears this has been fixed in the latest dev. So no need to apply this patch, just use the dev version.