From 59ad490e065d4156a22c3806bbf61cb313899da6 Mon Sep 17 00:00:00 2001 From: Felipe Rambor Date: Wed, 2 Jul 2025 18:24:24 -0300 Subject: [PATCH] fix: add 'WHERE' clause to UPDATE query --- .../astpp/application/modules/accounts/controllers/accounts.php | 1 + 1 file changed, 1 insertion(+) 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"),