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