fix(comments mention): Fix ascii issue in comments mention (#6742)

This commit is contained in:
Nabin Hait 2019-01-10 15:34:39 +05:30 committed by Rushabh Mehta
parent 22b1987dfa
commit f970a9fd61
2 changed files with 5 additions and 3 deletions

View file

@ -96,15 +96,17 @@ def notify_mentions(doc):
recipients = [frappe.db.get_value("User", {"enabled": 1, "name": name, "user_type": "System User"}, "email")
for name in mentions]
link = get_link_to_form(doc.reference_doctype, doc.reference_name, label=parent_doc_label)
frappe.sendmail(
recipients=recipients,
sender=frappe.session.user,
subject=subject,
template="mentioned_in_comment",
args={
"sender_fullname": sender_fullname,
"body_content": _("{0} mentioned you in a comment in {1}").format(sender_fullname, link),
"comment": doc,
"link": get_link_to_form(doc.reference_doctype, doc.reference_name, label=parent_doc_label)
"link": link
},
header=[_('New Mention'), 'orange']
)

View file

@ -1,5 +1,5 @@
<p>
{{ _("{0} mentioned you in a comment in {1}").format(sender_fullname, link) }}
{{ body_content }}
</p>
<blockquote
style="border-left: 3px solid #d1d8dd; padding: 7px 15px; margin-left: 0px;">