fix: patch
This commit is contained in:
parent
ae097e5139
commit
e337ce9edf
2 changed files with 2 additions and 2 deletions
|
|
@ -266,7 +266,7 @@ def raise_link_exists_exception(doc, reference_doctype, reference_docname, row='
|
|||
.format(doc.doctype, doc_link, reference_doctype, reference_link, row), frappe.LinkExistsError)
|
||||
|
||||
def delete_dynamic_links(doctype, name):
|
||||
delete_references('ToDo', doctype, name)
|
||||
delete_references('ToDo', doctype, name, 'reference_type')
|
||||
delete_references('Email Unsubscribe', doctype, name)
|
||||
delete_references('DocShare', doctype, name, 'share_doctype', 'share_name')
|
||||
delete_references('Version', doctype, name, 'ref_doctype', 'docname')
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import frappe
|
|||
|
||||
def execute():
|
||||
for comment in frappe.get_all('Communication', fields = ['*'],
|
||||
filters = dict(communication_type = 'Comment'))
|
||||
filters = dict(communication_type = 'Comment')):
|
||||
|
||||
new_comment = frappe.new_doc('Comment')
|
||||
new_comment.comment_type = comment.comment_type
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue