Hi there.
Just noticed that if you create a revision of a product node, then head to the products page (function uc_product_default) you get a table row for each revision, where you should only get the current revision.
function uc_product_detault in uc_product.module
$result = pager_query(db_rewrite_sql("SELECT n.nid FROM {node} AS n RIGHT JOIN {uc_products} AS p ON n.nid = p.nid WHERE n.status = 1 ORDER BY ". $order), variable_get('uc_product_nodes_per_page', 10), 0, null);should be:
$result = pager_query(db_rewrite_sql("SELECT n.nid FROM {node} AS n RIGHT JOIN {uc_products} AS p ON n.nid = p.nid AND n.vid = p.vid WHERE n.status = 1 ORDER BY ". $order), variable_get('uc_product_nodes_per_page', 10), 0, null);Attached is a patch (with a .txt extension to get it past the file upload box!).
Cheers,
Ben
| Attachment | Size |
|---|---|
| multiple_product_list_revision.patch_.txt | 1000 bytes |





Joined: 11/01/2007