From 09e149bec34efad7c4bb7b36fb18240c94e7ca99 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Fri, 8 Feb 2019 16:22:47 +0530 Subject: [PATCH] fix(typo): comments.py --- 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 c241c862bc..dd2d8e53e2 100644 --- a/frappe/core/doctype/comment/comment.py +++ b/frappe/core/doctype/comment/comment.py @@ -115,7 +115,7 @@ def update_comment_in_doc(doc): }""" # only comments get updates, not likes, assignments etc. - if self.comment_type != 'Comment': + if doc.comment_type != 'Comment': return def get_truncated(content):