소스 검색

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


불러오는 중...
취소
저장