diff --git a/frappe/templates/includes/comments/comments.py b/frappe/templates/includes/comments/comments.py index 773f50e327..77082c6e3b 100644 --- a/frappe/templates/includes/comments/comments.py +++ b/frappe/templates/includes/comments/comments.py @@ -13,7 +13,7 @@ from frappe import _ def add_comment(comment, comment_email, comment_by, reference_doctype, reference_name, route): doc = frappe.get_doc(reference_doctype, reference_name) - if not doc.doctype in ['Blog Post', 'Web Page']: + if doc.doctype not in ['Blog Post', 'Web Page']: return if not comment.strip():