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:
Code:$db->Execute("delete from " . TABLE_ORDERS_PRODUCTS_DOWNLOAD . " where orders_id = '" . (int)$order_id . "'");
Bookmarks