瀏覽代碼

[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.

: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


Loading…
取消
儲存