Update customers.php

Fix Delete the Customers Attributes with the given field name, it delete all from the table which belong to other customers
This commit is contained in:
Focuslinkstech 2024-03-08 10:43:07 +01:00
parent 08790e7295
commit c4e702ee2f

View file

@ -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();
}
}