fix: handle email without content adding links (#24994)
This commit is contained in:
parent
dd50cc0cf1
commit
9d0a24f3de
1 changed files with 2 additions and 2 deletions
|
|
@ -6,7 +6,7 @@ from frappe.desk.doctype.notification_settings.notification_settings import (
|
|||
)
|
||||
from frappe.desk.doctype.todo.todo import ToDo
|
||||
from frappe.email.doctype.email_account.email_account import EmailAccount
|
||||
from frappe.utils import get_formatted_email, get_url, parse_addr
|
||||
from frappe.utils import cstr, get_formatted_email, get_url, parse_addr
|
||||
|
||||
|
||||
class CommunicationEmailMixin:
|
||||
|
|
@ -147,7 +147,7 @@ class CommunicationEmailMixin:
|
|||
|
||||
def get_content(self, print_format=None):
|
||||
if print_format and frappe.get_system_settings("attach_view_link"):
|
||||
return self.content + self.get_attach_link(print_format)
|
||||
return cstr(self.content) + self.get_attach_link(print_format)
|
||||
return self.content
|
||||
|
||||
def get_attach_link(self, print_format):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue