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):