diff --git a/erpnext/crm/doctype/utils.py b/erpnext/crm/doctype/utils.py index 5781e39634..acb074a16a 100644 --- a/erpnext/crm/doctype/utils.py +++ b/erpnext/crm/doctype/utils.py @@ -48,7 +48,7 @@ def get_last_interaction(number, reference_doc): WHERE {} ORDER BY `modified` LIMIT 1 - """.format(query_condition)) + """.format(query_condition)) # nosec if customer_name: last_issue = frappe.get_all('Issue', { diff --git a/erpnext/public/js/call_popup/call_popup.js b/erpnext/public/js/call_popup/call_popup.js index d3c9c0ce41..a15c37c85d 100644 --- a/erpnext/public/js/call_popup/call_popup.js +++ b/erpnext/public/js/call_popup/call_popup.js @@ -38,7 +38,7 @@ class CallPopup { 'label': 'Submit', 'click': () => { const values = this.dialog.get_values(); - if (!values.call_summary) return + if (!values.call_summary) return; frappe.xcall('erpnext.crm.doctype.utils.add_call_summary', { 'docname': this.call_log.id, 'summary': values.call_summary,