From 2507c6af97c8ae37a166a39c4653b193c78cd6c3 Mon Sep 17 00:00:00 2001 From: barredterra <14891507+barredterra@users.noreply.github.com> Date: Tue, 14 Nov 2023 23:25:34 +0100 Subject: [PATCH] fix: check the correct email account --- frappe/core/doctype/communication/communication.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/core/doctype/communication/communication.py b/frappe/core/doctype/communication/communication.py index d47f41ff41..3573257a82 100644 --- a/frappe/core/doctype/communication/communication.py +++ b/frappe/core/doctype/communication/communication.py @@ -433,7 +433,7 @@ class Communication(Document, CommunicationEmailMixin): frappe.db.commit() def parse_email_for_timeline_links(self): - if not frappe.db.get_value("Email Account", filters={"enable_automatic_linking": 1}): + if not frappe.db.get_value("Email Account", self.email_account, "enable_automatic_linking"): return for doctype, docname in parse_email([self.recipients, self.cc, self.bcc]):