mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-15 07:35:00 +00:00
fix: prevent unnecessary db.commit for contact insert [Linters]
(cherry picked from commit 87de5c7450)
This commit is contained in:
@@ -185,7 +185,7 @@ def link_existing_conversations(doc, state):
|
||||
""",
|
||||
dict(phone_number=f"%{number}", docname=doc.name, doctype=doc.doctype),
|
||||
)
|
||||
if logs:
|
||||
if logs:
|
||||
for log in logs:
|
||||
call_log = frappe.get_doc("Call Log", log)
|
||||
call_log.add_link(link_type=doc.doctype, link_name=doc.name)
|
||||
|
||||
Reference in New Issue
Block a user