Merge pull request #21638 from MyuddinKhatri/lead-update-fix-v13

fix(crm): fix lead while updating contact details (develop)
This commit is contained in:
rohitwaghchaure 2020-05-08 10:37:11 +05:30 committed by GitHub
commit f0385d0671
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,6 +19,5 @@ def update_lead_phone_numbers(contact, method):
mobile_no = primary_mobile_nos[0]
lead = frappe.get_doc("Lead", contact_lead)
lead.phone = phone
lead.mobile_no = mobile_no
lead.save()
lead.db_set("phone", phone)
lead.db_set("mobile_no", mobile_no)