[Fix] Special character issue while upadting customer group in customer (#14312)

This commit is contained in:
rohitwaghchaure 2018-06-01 15:11:21 +05:30 committed by Nabin Hait
parent 2fa057e4ad
commit ce642d73cb

View File

@ -79,7 +79,7 @@ class Customer(TransactionBase):
def update_customer_groups(self):
ignore_doctypes = ["Lead", "Opportunity", "POS Profile", "Tax Rule", "Pricing Rule"]
if frappe.flags.customer_group_changed:
update_linked_doctypes('Customer', self.name, 'Customer Group',
update_linked_doctypes('Customer', frappe.db.escape(self.name), 'Customer Group',
self.customer_group, ignore_doctypes)
def create_primary_contact(self):