From c641d51158a728dfd76290154d62ca76a6508f6d Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Mon, 22 Jun 2015 09:02:04 +0530 Subject: [PATCH] [fix] Update comments in parent doctype if comment_doctype mentioned --- frappe/core/doctype/comment/comment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/core/doctype/comment/comment.py b/frappe/core/doctype/comment/comment.py index 57e688a8f6..fa2c8cb37e 100644 --- a/frappe/core/doctype/comment/comment.py +++ b/frappe/core/doctype/comment/comment.py @@ -101,7 +101,7 @@ class Comment(Document): """Updates `_comments` property in parent Document with given dict. :param _comments: Dict of comments.""" - if frappe.db.get_value("DocType", self.comment_doctype, "issingle"): + if not self.comment_doctype or frappe.db.get_value("DocType", self.comment_doctype, "issingle"): return # use sql, so that we do not mess with the timestamp