浏览代码

Fix: Comment in single doctype

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

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

@@ -60,6 +60,8 @@ class Comment(Document):
raise

def update_comments_in_parent(self, _comments):
if frappe.db.get_value("DocType", self.comment_doctype, "issingle"):
return
# use sql, so that we do not mess with the timestamp
frappe.db.sql("""update `tab%s` set `_comments`=%s where name=%s""" % (self.comment_doctype,
"%s", "%s"), (json.dumps(_comments), self.comment_docname))


正在加载...
取消
保存