From c4e702ee2f5cca8b4bda5c2686ccb8df66afb23a Mon Sep 17 00:00:00 2001 From: Focuslinkstech <45756999+Focuslinkstech@users.noreply.github.com> Date: Fri, 8 Mar 2024 10:43:07 +0100 Subject: [PATCH] Update customers.php Fix Delete the Customers Attributes with the given field name, it delete all from the table which belong to other customers --- system/controllers/customers.php | 1 + 1 file changed, 1 insertion(+) diff --git a/system/controllers/customers.php b/system/controllers/customers.php index 0dbc1c5e..cfdf23b4 100644 --- a/system/controllers/customers.php +++ b/system/controllers/customers.php @@ -465,6 +465,7 @@ switch ($action) { // Delete the Customers Attributes with the given field name ORM::for_table('tbl_customers_fields') ->where('field_name', $fieldName) + ->where('customer_id', $id) ->delete_many(); } }