fix: patch

This commit is contained in:
Rushabh Mehta 2019-02-07 16:35:38 +05:30
parent ae097e5139
commit e337ce9edf
2 changed files with 2 additions and 2 deletions

View file

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

View file

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