delete line items when order deleted?

Project:Ubercart Contributions
Component:Code
Category:
Priority:normal
Assigned:Unassigned
Status:active
Description
Project: 
Ubercart

I noticed that when you delete an order, the line items for that order remain in the database. Is that intentional?

It seems like a call to uc_order_delete_line_item($order_id, TRUE) is missing from uc_order_delete.

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: delete line items when order deleted?

Excellent find. Added this after the other delete queries:

<?php
 
// Delete line items for the order.
 
uc_order_delete_line_item($order_id, TRUE);
?>