Merge pull request #27394 from ljain112/fix-rename-nested-set

fix: incorrect parameters in `frappe.db.set_value` call in `after_rename` method
This commit is contained in:
Akhil Narang 2024-08-13 18:32:13 +05:30 committed by GitHub
commit 2c7852e6aa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -317,8 +317,8 @@ class NestedSet(Document):
# set old_parent for children
frappe.db.set_value(
self.doctype,
{"old_parent": newdn},
{parent_field: newdn},
{"old_parent": newdn},
update_modified=False,
)