fix: pass the argument to delete_doc via rename_doc (#34226)
This commit is contained in:
parent
5252d5ad47
commit
c6c91435fb
1 changed files with 1 additions and 1 deletions
|
|
@ -217,7 +217,7 @@ def rename_doc(
|
|||
new_doc.add_comment("Edit", _("renamed from {0} to {1}").format(frappe.bold(old), frappe.bold(new)))
|
||||
|
||||
if merge:
|
||||
frappe.delete_doc(doctype, old)
|
||||
frappe.delete_doc(doctype, old, ignore_permissions=ignore_permissions)
|
||||
|
||||
new_doc.clear_cache()
|
||||
frappe.clear_cache()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue