If this is your first visit, check our documentation. To post, register or login.
Forums / Code Matters / Bug Reports / [Done v1.3.9g] Deleting an order doesn't update orders_products_download table

[Done v1.3.9g] Deleting an order doesn't update orders_products_download table

Locked

Started by lat9 on 24 Sep 2010, 3:01 PM · Views: 921

Results 1 to 1 of 1
This thread is locked. New replies are disabled.
24 Sep 2010, 3:01 PM
#1
lat9 avatar

lat9

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 . "'");