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:
parent
08790e7295
commit
c4e702ee2f
@ -465,6 +465,7 @@ switch ($action) {
|
|||||||
// Delete the Customers Attributes with the given field name
|
// Delete the Customers Attributes with the given field name
|
||||||
ORM::for_table('tbl_customers_fields')
|
ORM::for_table('tbl_customers_fields')
|
||||||
->where('field_name', $fieldName)
|
->where('field_name', $fieldName)
|
||||||
|
->where('customer_id', $id)
|
||||||
->delete_many();
|
->delete_many();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user