浏览代码

[fix] Update comments in parent doctype if comment_doctype mentioned

version-14
Nabin Hait 10 年前
父节点
当前提交
c641d51158
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      frappe/core/doctype/comment/comment.py

+ 1
- 1
frappe/core/doctype/comment/comment.py 查看文件

@@ -101,7 +101,7 @@ class Comment(Document):
"""Updates `_comments` property in parent Document with given dict. """Updates `_comments` property in parent Document with given dict.


:param _comments: Dict of comments.""" :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 return


# use sql, so that we do not mess with the timestamp # use sql, so that we do not mess with the timestamp


正在加载...
取消
保存