The function uc_product_get_models() queries {uc_products} directly to get the model, which fails to account for revisions to the product. The correct db query joins on {node} and matches vid.
Line 1706:
$models[] = db_result(db_query("SELECT model FROM {uc_products} p INNER JOIN {node} n ON n.nid = p.nid WHERE n.vid = p.vid AND p.nid = %d", $nid));
Comments
Comment #1
tr commentedDuplicate of #1637336: UC Stock pages display wrong SKU, it seems to be ignoring revisions. Please help out with that issue if you'd like to see this fixed.