delete line items when order deleted?

Project: 
Ubercart
Category: 
bug report
Priority: 
normal
Status: 
fixed

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.

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