diff --git a/web_interface/astpp/application/modules/accounts/controllers/accounts.php b/web_interface/astpp/application/modules/accounts/controllers/accounts.php index 457517818..a4d9540ca 100644 --- a/web_interface/astpp/application/modules/accounts/controllers/accounts.php +++ b/web_interface/astpp/application/modules/accounts/controllers/accounts.php @@ -3048,6 +3048,7 @@ function customer_did_delete($accountid) if ($order_item->num_rows > 0) { $order_item = $order_item->result_array(); foreach ($order_item as $key => $item) { + $this->db->where("id", $item['id']); $this->db->update("order_items", array( "is_terminated" => 1, "termination_date" => gmdate("Y-m-d"),