| Project: | Ubercart Contributions |
| Component: | Code |
| Category: | |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Hi,
The stock report currently pulls in all revisions of a product, resulting in many duplicates when revisions is turned on and being used. I think the problem is this SQL statement from line 235 of uc_stock:
$sql = "SELECT s.nid,`sku`,`title`,`stock`,`threshold` FROM {uc_product_stock} as s LEFT JOIN {node_revisions} as n ON s.nid = n.nid WHERE active = 1";Best,
Chad
