Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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.
Comment | File | Size | Author |
---|---|---|---|
#2 | filter-affiliate-orders-2199237-2-D7.patch | 362 bytes | skulegirl |
Comments
Comment #1
dainesj CreditAttribution: dainesj commentedComment #2
skulegirl CreditAttribution: skulegirl commentedThe db_select call in uc_affiliate2_orders was missing the condition. Patch attached.
Comment #3
michellezeedru CreditAttribution: michellezeedru commentedThe patch in #2 worked for me. Thanks!
Comment #4
jerry CreditAttribution: jerry commentedWorks here as well. Let's mark this RTBC and get it committed.
Comment #5
bisonbleu CreditAttribution: bisonbleu commentedIt appears this has been fixed in the latest dev. So no need to apply this patch, just use the dev version.