fix: duplicate follow
This exists in `doc.insert()` not need to add it here too
This commit is contained in:
parent
c2d2fda212
commit
9920c8d033
1 changed files with 0 additions and 5 deletions
|
|
@ -1469,11 +1469,6 @@ class Document(BaseDocument, DocRef):
|
|||
if version.update_version_info(doc_to_compare, self):
|
||||
version.insert(ignore_permissions=True)
|
||||
|
||||
if not frappe.flags.in_migrate:
|
||||
# follow since you made a change?
|
||||
if frappe.get_cached_value("User", frappe.session.user, "follow_created_documents"):
|
||||
follow_document(self.doctype, self.name, frappe.session.user)
|
||||
|
||||
@staticmethod
|
||||
def hook(f):
|
||||
"""Decorator: Make method `hookable` (i.e. extensible by another app).
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue