Bläddra i källkod

[fix] Update comments in parent doctype if comment_doctype mentioned

version-14
Nabin Hait 10 år sedan
förälder
incheckning
c641d51158
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. +1
    -1
      frappe/core/doctype/comment/comment.py

+ 1
- 1
frappe/core/doctype/comment/comment.py Visa fil

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


Laddar…
Avbryt
Spara