Rename doc fixes frappe/erpnext#1692
This commit is contained in:
parent
08b27f7d20
commit
f15863babc
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ def rename_doc(doctype, old, new, force=False, merge=False, ignore_permissions=F
|
|||
|
||||
# call before_rename
|
||||
out = frappe.get_doc(doctype, old).run_method("before_rename", old, new, merge) or {}
|
||||
new = (out.get("new") or new) if isinstance(out, dict) else new
|
||||
new = (out.get("new") or new) if isinstance(out, dict) else (out or new)
|
||||
new = validate_rename(doctype, new, meta, merge, force, ignore_permissions)
|
||||
|
||||
if not merge:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue