Skip to content

Commit

Permalink
fix: Handle case where document title can be NONE
Browse files Browse the repository at this point in the history
(cherry picked from commit 9b67fc2)
  • Loading branch information
surajshetty3416 authored and mergify[bot] committed Jun 13, 2022
1 parent d615a1a commit 5a27da5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frappe/www/printview.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,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",
"is_invalid_print": is_invalid_print,
Expand Down

0 comments on commit 5a27da5

Please sign in to comment.