fix(DocRename): on rename ignore link validation when updating values in single doctype

This commit is contained in:
Sumit Bhanushali 2024-11-22 16:30:32 +05:30
parent 9208b58b6f
commit 87ef74bb7e

View file

@ -434,6 +434,7 @@ def update_link_field_values(link_fields: list[dict], old: str, new: str, doctyp
# update single docs using ORM rather then query
# as single docs also sometimes sets defaults!
single_doc.flags.ignore_mandatory = True
single_doc.flags.ignore_links = True
single_doc.save(ignore_permissions=True)
except ImportError:
# fails in patches where the doctype has been renamed