fix: pass the argument to delete_doc via rename_doc (#34226)

This commit is contained in:
Soham Kulkarni 2025-10-01 15:15:27 +05:30 committed by GitHub
parent 5252d5ad47
commit c6c91435fb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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