fix: Do not pass doc to notify_system_managers method

This commit is contained in:
Suraj Shetty 2019-07-16 17:28:50 +05:30
parent ce058b2397
commit f06971d0c4

View file

@ -113,7 +113,7 @@ def confirm_deletion(email, name, host_name):
if doc.status == 'Pending Verification':
doc.status = 'Pending Approval'
doc.save(ignore_permissions=True)
doc.notify_system_managers(doc)
doc.notify_system_managers()
frappe.db.commit()
frappe.respond_as_web_page(_("Confirmed"),
_("The process for deletion of {0} data associated with {1} has been initiated.").format(host_name, email),