From 77302b39286f7666609c0bb0a660daefb9aca673 Mon Sep 17 00:00:00 2001 From: Suraj Shetty Date: Tue, 11 Jun 2019 08:01:18 +0530 Subject: [PATCH] fix: Save summary to right field --- erpnext/crm/doctype/utils.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/erpnext/crm/doctype/utils.py b/erpnext/crm/doctype/utils.py index acb074a16a..68b5d1fd18 100644 --- a/erpnext/crm/doctype/utils.py +++ b/erpnext/crm/doctype/utils.py @@ -70,12 +70,12 @@ def get_last_interaction(number, reference_doc): @frappe.whitelist() def add_call_summary(docname, summary): call_log = frappe.get_doc('Call Log', docname) - content = _('Call Summary by {0}: {1}').format( + summary = _('Call Summary by {0}: {1}').format( frappe.utils.get_fullname(frappe.session.user), summary) - if not call_log.call_summary: - call_log.call_summary = content + if not call_log.summary: + call_log.summary = summary else: - call_log.call_summary += '
' + content + call_log.summary += '
' + summary call_log.save(ignore_permissions=True) def get_employee_emails_for_popup(communication_medium):