fix: Handle case where document title can be NONE
(cherry picked from commit 9b67fc24bc290789158f37a8f2ce10b505878792)
This commit is contained in:
parent
66deca1530
commit
a4f2912fdf
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ def get_context(context):
|
|||
"body": body,
|
||||
"print_style": print_style,
|
||||
"comment": frappe.session.user,
|
||||
"title": frappe.utils.strip_html(doc.get_title()),
|
||||
"title": frappe.utils.strip_html(doc.get_title() or doc.name),
|
||||
"lang": frappe.local.lang,
|
||||
"layout_direction": "rtl" if is_rtl() else "ltr",
|
||||
"doctype": frappe.form_dict.doctype,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue