From 43101e0356e0719dc8afdaf1412b1e8748c80644 Mon Sep 17 00:00:00 2001 From: Ritwik Puri Date: Tue, 27 Sep 2022 13:46:30 +0530 Subject: [PATCH] fix(minor): consider only email id as sender email for auto email report (#18231) --- frappe/email/doctype/auto_email_report/auto_email_report.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frappe/email/doctype/auto_email_report/auto_email_report.py b/frappe/email/doctype/auto_email_report/auto_email_report.py index 7b18c8632b..60a69607a2 100644 --- a/frappe/email/doctype/auto_email_report/auto_email_report.py +++ b/frappe/email/doctype/auto_email_report/auto_email_report.py @@ -40,8 +40,7 @@ class AutoEmailReport(Document): @property def sender_email(self): - email_id, login_id = frappe.db.get_value("Email Account", self.sender, ["email_id", "login_id"]) - return login_id if login_id else email_id + return frappe.db.get_value("Email Account", self.sender, "email_id") def validate_emails(self): """Cleanup list of emails"""