From 3291c089e04d5698cd7657374af1cbb86c093c70 Mon Sep 17 00:00:00 2001 From: gabrielfin Date: Fri, 28 Aug 2020 15:09:57 -0300 Subject: [PATCH] eZOrder: cleanup eZOrderItems --- kernel/classes/ezorder.php | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/classes/ezorder.php b/kernel/classes/ezorder.php index e1572dbf40a..e4110746e6a 100644 --- a/kernel/classes/ezorder.php +++ b/kernel/classes/ezorder.php @@ -1353,6 +1353,7 @@ static function cleanupOrder( $orderID ) $db = eZDB::instance(); $db->begin(); $db->query( "DELETE FROM ezorder where id='$orderID'" ); + $db->query( "DELETE FROM ezorder_item WHERE order_id=$orderID" ); $db->query( "DELETE FROM ezproductcollection where id='$productCollectionID'" ); $db->query( "DELETE FROM ezproductcollection_item where productcollection_id='$productCollectionID'" ); $db->query( "DELETE FROM ezorder_status_history WHERE order_id=$orderNr" );