24 Sep 2010, 3:01 PM
Administrator
- Join Date:
- Sep 2009
- Location:
- Stuart, FL
- Posts:
- 14,142
- Plugin Contributions:
- 56
[Done v1.3.9g] Deleting an order doesn't update orders_products_download table
ZC v1.3.9f
When an order is deleted via admin->customers->orders, all elements of the order are deleted except for those relating to downloads (the orders_products_download table in the database).
It looks like the function zen_remove_orders in /admin/includes/functions/general.php needs to have the following statement added:
$db->Execute("delete from " . TABLE_ORDERS_PRODUCTS_DOWNLOAD . "
where orders_id = '" . (int)$order_id . "'");